dfish-widget 1.0.127 → 1.0.128
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/lib/index.esm.js +8 -2
- package/lib/index.esm.js.map +1 -1
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -9877,14 +9877,19 @@ var script$o = {
|
|
|
9877
9877
|
},
|
|
9878
9878
|
onfocus(e) {
|
|
9879
9879
|
this.isFocus = true;
|
|
9880
|
-
if (!this.showSuggest && e.target.value && !this.sug_completed) {
|
|
9881
|
-
e.target.
|
|
9880
|
+
if (this.x.suggest && !this.showSuggest && e.target.value && !this.sug_completed) {
|
|
9881
|
+
this.doSuggest(e.target.value);
|
|
9882
9882
|
}
|
|
9883
9883
|
if (this.sug_completed) {
|
|
9884
9884
|
this.sug_completed = false;
|
|
9885
9885
|
}
|
|
9886
9886
|
this.trigger('focus');
|
|
9887
9887
|
},
|
|
9888
|
+
onclick(e) {
|
|
9889
|
+
if (this.x.suggest && !this.showSuggest && e.target.value && !this.sug_completed) {
|
|
9890
|
+
this.doSuggest(e.target.value);
|
|
9891
|
+
}
|
|
9892
|
+
},
|
|
9888
9893
|
doSuggest(a) {
|
|
9889
9894
|
a = a == null ? true : a;
|
|
9890
9895
|
if (a === false) {
|
|
@@ -9951,6 +9956,7 @@ var script$o = {
|
|
|
9951
9956
|
let r = {
|
|
9952
9957
|
oninput: this.oninput,
|
|
9953
9958
|
onfocus: this.onfocus,
|
|
9959
|
+
onclick: this.onclick,
|
|
9954
9960
|
};
|
|
9955
9961
|
if (this.x.maxLength) {
|
|
9956
9962
|
r.maxlength = this.x.maxLength;
|