mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
parent
0cc7c7afeb
commit
bf18b7b65a
19 changed files with 201 additions and 24 deletions
|
@ -10,11 +10,11 @@
|
|||
import { getContext } from 'svelte';
|
||||
import { cx } from '../../lib';
|
||||
|
||||
const { selected } = getContext('Select');
|
||||
const ctx = getContext('Select') || getContext('TimePickerSelect');
|
||||
</script>
|
||||
|
||||
<option
|
||||
selected={$selected === value}
|
||||
selected={ctx.$selected === value}
|
||||
class={cx('--select-option', className)}
|
||||
{value}
|
||||
{disabled}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue