@tagplus/components 2.1.3 → 2.1.4

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
@@ -8,7 +8,7 @@
8
8
  "email": "bruno@tagplus.com.br"
9
9
  }
10
10
  ],
11
- "version": "2.1.3",
11
+ "version": "2.1.4",
12
12
  "main": "./dist/tp.common.js",
13
13
  "directories": {
14
14
  "lib": "src/lib"
@@ -39,6 +39,7 @@
39
39
  @keydown.native.enter.prevent="selectOption"
40
40
  @keydown.native.esc.stop.prevent="visible = false"
41
41
  @keydown.native.tab="visible = false"
42
+ @change="handleChange"
42
43
  @paste.native="debouncedOnInputChange"
43
44
  @mouseenter.native="inputHovering = true"
44
45
  @mouseleave.native="inputHovering = false"
@@ -426,6 +427,12 @@ export default {
426
427
  },
427
428
 
428
429
  methods: {
430
+ handleChange () {
431
+ if (!this.visible) {
432
+ this.toggleMenu()
433
+ }
434
+ },
435
+
429
436
  handleFocus (event) {
430
437
  this.focused = true
431
438
  this.$emit('focus', event)