carbon-components-svelte 0.87.6 → 0.87.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-components-svelte",
3
- "version": "0.87.6",
3
+ "version": "0.87.7",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Svelte implementation of the Carbon Design System",
6
6
  "type": "module",
@@ -111,10 +111,11 @@
111
111
  let prevSelected = undefined;
112
112
 
113
113
  afterUpdate(() => {
114
- selected = $selectedValue;
115
-
116
- if (prevSelected !== undefined && selected !== prevSelected) {
117
- dispatch("update", $selectedValue);
114
+ if (selected !== $selectedValue) {
115
+ selected = $selectedValue;
116
+ if (prevSelected !== undefined) {
117
+ dispatch("update", $selectedValue);
118
+ }
118
119
  }
119
120
 
120
121
  prevSelected = selected;