@afeefa/vue-app 0.0.141 → 0.0.142
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.
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.142
|
package/package.json
CHANGED
@@ -90,11 +90,18 @@ export default class ATextField extends Mixins(ComponentWidthMixin) {
|
|
90
90
|
if (this.clearable) {
|
91
91
|
// empty value if value exists
|
92
92
|
if (this.internalValue) {
|
93
|
-
event.stopPropagation()
|
93
|
+
event.stopPropagation() // break propagation chain, do not close popups e.g.
|
94
94
|
}
|
95
95
|
this.setInternalValue('')
|
96
|
+
|
96
97
|
this.$emit('input:internal', '')
|
97
|
-
|
98
|
+
|
99
|
+
if (this.debounceInputFunction) {
|
100
|
+
this.debounceInputFunction(this.internalValue)
|
101
|
+
} else {
|
102
|
+
this.$emit('input', this.emptyModelValue)
|
103
|
+
}
|
104
|
+
|
98
105
|
this.$emit('clear')
|
99
106
|
}
|
100
107
|
}
|
@@ -109,7 +116,7 @@ export default class ATextField extends Mixins(ComponentWidthMixin) {
|
|
109
116
|
|
110
117
|
const value = this.textFieldValueToModelValue()
|
111
118
|
|
112
|
-
// NaN means: wrong numerical value AND no validator present
|
119
|
+
// value === NaN means: wrong numerical value AND no validator present
|
113
120
|
// otherwise validator would return validate() -> false
|
114
121
|
if (Number.isNaN(value)) {
|
115
122
|
return
|