@weni/unnnic-system 1.16.19-develop.1 → 1.16.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weni/unnnic-system",
3
- "version": "1.16.19-develop.1",
3
+ "version": "1.16.20",
4
4
  "main": "./dist/unnnic.common.js",
5
5
  "files": [
6
6
  "dist/*",
@@ -13,7 +13,7 @@
13
13
  />
14
14
 
15
15
  <div
16
- v-if="isMenuOpen && !disabled && (items.length || (tag && inputValue))"
16
+ v-if="showMenu && isMenuOpen && !disabled && (items.length || (tag && inputValue))"
17
17
  class="options-container"
18
18
  >
19
19
  <div class="options">
@@ -133,6 +133,10 @@ export default {
133
133
  type: Boolean,
134
134
  default: true,
135
135
  },
136
+ showMenu: {
137
+ type: Boolean,
138
+ default: true,
139
+ },
136
140
  },
137
141
 
138
142
  data() {
@@ -254,7 +258,10 @@ export default {
254
258
  },
255
259
  openMenuAndEmitSearch(event) {
256
260
  if (this.isCreated) {
257
- this.isMenuOpen = true;
261
+ if (this.showMenu) {
262
+ this.isMenuOpen = true;
263
+ }
264
+
258
265
  this.$emit('search', event);
259
266
  }
260
267
  },