vue3-extended-multiselect 1.5.9 → 1.5.10

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Patch notes
2
2
 
3
- Current `vue3-extended-multiselect` version: **1.5.9**
3
+ Current `vue3-extended-multiselect` version: **1.5.10**
4
4
 
5
5
  ***
6
6
 
@@ -230,4 +230,9 @@ Adding descriptive comments for some types in typings.
230
230
  ### 1.5.9 (2023-02-01)
231
231
 
232
232
  * "loading" prop no longer disables search field.
233
- * Changing value of css-variable "--min-block-height" from 25px to 26px.
233
+ * Changing value of css-variable "--min-block-height" from 25px to 26px.
234
+
235
+ ### 1.5.10 (2023-02-01)
236
+
237
+ * Fixing bug with field focus when selecting an option.
238
+ * Removal of validator from "emptyObjectsPlaceholder" prop.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # vue3-extended-multiselect v1.5.9
1
+ # vue3-extended-multiselect v1.5.10
2
2
 
3
3
  ***
4
4
 
package/jest.config.js CHANGED
@@ -5,7 +5,7 @@ module.exports = {
5
5
  },
6
6
  expand: true,
7
7
  displayName: {
8
- name: "vue3-extended-multiselect 1.5.9",
8
+ name: "vue3-extended-multiselect 1.5.10",
9
9
  color: "bgGreen",
10
10
  },
11
11
  extraGlobals: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue3-extended-multiselect",
3
- "version": "1.5.9",
3
+ "version": "1.5.10",
4
4
  "description": "Extended multiselect component for applications based on Vue 3 framework",
5
5
  "keywords": [
6
6
  "multiselect",
@@ -254,7 +254,7 @@ import ExtendedMultiselectToggle from "./ExtendedMultiselectToggle.vue";
254
254
 
255
255
  /**
256
256
  * @author Ridiger Daniil Dmitrievich, 2022
257
- * @version 1.5.9
257
+ * @version 1.5.10
258
258
  */
259
259
 
260
260
  const props = defineProps({
@@ -529,9 +529,6 @@ const props = defineProps({
529
529
  emptyObjectsPlaceholder: {
530
530
  type: String,
531
531
  default: "Empty Object/Array",
532
- validator(value) {
533
- return !!value;
534
- },
535
532
  },
536
533
 
537
534
  /**
@@ -1498,8 +1495,8 @@ const toggleDetector = (mouseEvent, pattern, mode) => {
1498
1495
  target
1499
1496
  && (target.classList
1500
1497
  && !target.classList.contains("extended__multiselect-wrapper")
1501
- && !target.classList.contains("extended__multiselect-options_container")
1502
- || target.classList && !target.classList.length)
1498
+ || target.classList
1499
+ && !target.classList.length)
1503
1500
  && mode
1504
1501
  && !filteredHasToggle.length
1505
1502
  ) {
@@ -1507,6 +1504,11 @@ const toggleDetector = (mouseEvent, pattern, mode) => {
1507
1504
  return pattern.test(className) === true;
1508
1505
  });
1509
1506
 
1507
+ if (target.classList.contains("extended__multiselect-options_container")) {
1508
+ filteredHasToggle.push("extended__multiselect-options_container");
1509
+ return filteredHasToggle;
1510
+ }
1511
+
1510
1512
  target = target.parentNode;
1511
1513
  }
1512
1514