mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
fix(select-item): remove condition in selectedValue subscription
This commit is contained in:
parent
6a97175f75
commit
9824b7458e
1 changed files with 1 additions and 3 deletions
|
@ -15,9 +15,7 @@
|
||||||
let selected = false;
|
let selected = false;
|
||||||
|
|
||||||
ctx.selectedValue.subscribe(currentValue => {
|
ctx.selectedValue.subscribe(currentValue => {
|
||||||
if (currentValue === value) {
|
selected = currentValue === value;
|
||||||
selected = true;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue