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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # vue3-extended-multiselect v2.3.2
1
+ # vue3-extended-multiselect v2.3.3
2
2
 
3
3
  ***
4
4
 
@@ -1052,7 +1052,7 @@ const showLoaderIcon = vue.computed(() => {
1052
1052
  * @function
1053
1053
  * @param {Array} - array of selected options
1054
1054
  */
1055
- vue.watch(selectedOptions, (value) => {
1055
+ vue.watch(selectedOptions, (value) => {
1056
1056
  if (!value.length || value.length <= multipleBlocksLimit.value) {
1057
1057
  optionsLimitIncreaser.value = multipleBlocksLimit.value;
1058
1058
  }
@@ -2974,6 +2974,15 @@ const triggerOptionBeforeSelection = () => {
2974
2974
  }
2975
2975
  };
2976
2976
 
2977
+ /**
2978
+ * Forcibly rolls up dropdown options list by changing "dropdownActive" flag
2979
+ * @function
2980
+ * @emits extended:available-options
2981
+ */
2982
+ vue.watch(availableOptions, () => {
2983
+ emitter.value.emit("extended:available-options");
2984
+ });
2985
+
2977
2986
  /**
2978
2987
  * "onBeforeMount" hook of ExtendedMultiselectOptions component
2979
2988
  * @listens extended:select-enter
@@ -5110,6 +5119,12 @@ vue.onBeforeMount(() => {
5110
5119
 
5111
5120
  chosenToggleAppearanceSide.value = toggleAppearanceSide.value;
5112
5121
 
5122
+ emitter.value.on("extended:available-options", () => {
5123
+ vue.nextTick(() => {
5124
+ toggleAppearanceRestrictorActivate();
5125
+ });
5126
+ });
5127
+
5113
5128
  emitter.value.on("extended:rollup-options", () => {
5114
5129
  if (!dropdownActive.value) return;
5115
5130