vue3-extended-multiselect 2.3.2 → 2.3.3
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.
|
@@ -1048,7 +1048,7 @@ const showLoaderIcon = computed(() => {
|
|
|
1048
1048
|
* @function
|
|
1049
1049
|
* @param {Array} - array of selected options
|
|
1050
1050
|
*/
|
|
1051
|
-
|
|
1051
|
+
watch(selectedOptions, (value) => {
|
|
1052
1052
|
if (!value.length || value.length <= multipleBlocksLimit.value) {
|
|
1053
1053
|
optionsLimitIncreaser.value = multipleBlocksLimit.value;
|
|
1054
1054
|
}
|
|
@@ -2970,6 +2970,15 @@ const triggerOptionBeforeSelection = () => {
|
|
|
2970
2970
|
}
|
|
2971
2971
|
};
|
|
2972
2972
|
|
|
2973
|
+
/**
|
|
2974
|
+
* Forcibly rolls up dropdown options list by changing "dropdownActive" flag
|
|
2975
|
+
* @function
|
|
2976
|
+
* @emits extended:available-options
|
|
2977
|
+
*/
|
|
2978
|
+
watch(availableOptions, () => {
|
|
2979
|
+
emitter.value.emit("extended:available-options");
|
|
2980
|
+
});
|
|
2981
|
+
|
|
2973
2982
|
/**
|
|
2974
2983
|
* "onBeforeMount" hook of ExtendedMultiselectOptions component
|
|
2975
2984
|
* @listens extended:select-enter
|
|
@@ -5106,6 +5115,12 @@ onBeforeMount(() => {
|
|
|
5106
5115
|
|
|
5107
5116
|
chosenToggleAppearanceSide.value = toggleAppearanceSide.value;
|
|
5108
5117
|
|
|
5118
|
+
emitter.value.on("extended:available-options", () => {
|
|
5119
|
+
nextTick(() => {
|
|
5120
|
+
toggleAppearanceRestrictorActivate();
|
|
5121
|
+
});
|
|
5122
|
+
});
|
|
5123
|
+
|
|
5109
5124
|
emitter.value.on("extended:rollup-options", () => {
|
|
5110
5125
|
if (!dropdownActive.value) return;
|
|
5111
5126
|
|