diff --git a/package.json b/package.json
index 0308555..96bc3df 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "vue3-hive-ui-kit",
"private": false,
- "version": "0.7.10",
+ "version": "0.7.11",
"type": "module",
"description": "UI kit for Vue 3",
"files": [
diff --git a/src/components/hive-multiselect/hive-multiselect.vue b/src/components/hive-multiselect/hive-multiselect.vue
index 0a43354..b1e20fa 100644
--- a/src/components/hive-multiselect/hive-multiselect.vue
+++ b/src/components/hive-multiselect/hive-multiselect.vue
@@ -105,8 +105,11 @@ const deleteLast = (value: Value) => {
watch(
() => props.modelValue,
() => {
- console.log('here modelValue');
currentValue.value = props.modelValue;
+ configOptions.modelValue = props.modelValue === null ? [] : props.modelValue;
+ current.value = useListMethods(configOptions).current.value;
+ currentOptions.value = useListMethods(configOptions).currentOptions.value;
+ filteredOptions.value = useListMethods(configOptions).filteredOptions.value;
},
{ deep: true },
);
@@ -114,7 +117,6 @@ watch(
watch(
() => props.options,
() => {
- console.log('here options');
configOptions.options = props.options;
currentOptions.value = useListMethods(configOptions).currentOptions.value;
filteredOptions.value = useListMethods(configOptions).filteredOptions.value;
@@ -126,7 +128,6 @@ watch(
watch(
currentValue,
() => {
- console.log('here currentValue');
filteredOptions.value = useListMethods(configOptions).filteredOptions.value;
setNextActiveValue();
},
diff --git a/src/examples/App.vue b/src/examples/App.vue
index 75fb27e..e4e9747 100644
--- a/src/examples/App.vue
+++ b/src/examples/App.vue
@@ -12,11 +12,11 @@ const a = 1;
-
+
@@ -830,7 +859,8 @@ const optionsObject1 = {
{{ checkbox }}
-
+
+