Skip to content

Commit c9a0e0d

Browse files
authored
Merge pull request #884 from Sysvale/fix/select-interaction-with-form-wizzard
Fix/select interaction with form wizzard
2 parents 82ce310 + 23a66d1 commit c9a0e0d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sysvale/cuida",
3-
"version": "3.101.1",
3+
"version": "3.101.2",
44
"description": "A design system built by Sysvale, using storybook and Vue components",
55
"repository": {
66
"type": "git",

src/components/Select.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ watch(() => props.options, (newValue, oldValue) => {
332332
}, { immediate: true });
333333
334334
watch(model, (newValue, oldValue) => {
335-
if (newValue !== oldValue) {
335+
if (newValue !== oldValue && newValue !== localValue.value) {
336336
if (newValue instanceof Object) {
337337
localValue.value = newValue;
338338
} else {
@@ -342,6 +342,8 @@ watch(model, (newValue, oldValue) => {
342342
}, { immediate: true });
343343
344344
watch(localValue, (currentValue) => {
345+
if (currentValue === model.value) return;
346+
345347
const compatibleOptions = localOptions.value.filter(
346348
(option) => JSON.stringify(option) === JSON.stringify(currentValue),
347349
);

0 commit comments

Comments
 (0)