fix(nc-gui): reset multiselect search on selecting option

This commit is contained in:
Ramesh Mane
2025-03-10 06:00:35 +00:00
parent fae777b4b5
commit 243bb07bd7

View File

@@ -113,6 +113,8 @@ const vModel = computed({
if (isNewOptionCreateEnabled.value && isOptionMissing.value && val.length && val[val.length - 1] === searchVal.value) {
return addIfMissingAndSave()
}
searchVal.value = ''
emit('update:modelValue', val.length === 0 ? null : val.join(','))
},
})