mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11: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;
|
||||
|
||||
ctx.selectedValue.subscribe(currentValue => {
|
||||
if (currentValue === value) {
|
||||
selected = true;
|
||||
}
|
||||
selected = currentValue === value;
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue