goodteditor-ui 1.0.40 → 1.0.42
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
|
@@ -280,7 +280,7 @@ export default {
|
|
|
280
280
|
* Input event
|
|
281
281
|
* @property {String} date
|
|
282
282
|
*/
|
|
283
|
-
this.$emit('input',
|
|
283
|
+
this.$emit('input', model);
|
|
284
284
|
/**
|
|
285
285
|
* Change event
|
|
286
286
|
* @property {String|Array} value
|
|
@@ -314,7 +314,7 @@ export default {
|
|
|
314
314
|
* Input event
|
|
315
315
|
* @property {String} date
|
|
316
316
|
*/
|
|
317
|
-
this.$emit('input',
|
|
317
|
+
this.$emit('input', model);
|
|
318
318
|
/**
|
|
319
319
|
* Change event
|
|
320
320
|
* @property {String|Array} value
|
|
@@ -411,18 +411,19 @@ export default {
|
|
|
411
411
|
onKeyDown(e) {
|
|
412
412
|
let list = this.getDatalistRef();
|
|
413
413
|
if (e.key === Key.ESC) {
|
|
414
|
+
if (this.popoverShow) {
|
|
415
|
+
e.stopPropagation();
|
|
416
|
+
}
|
|
414
417
|
this.popoverShow = false;
|
|
415
418
|
return;
|
|
416
419
|
}
|
|
417
|
-
if (e.key === Key.ENTER) {
|
|
418
|
-
|
|
419
|
-
this.popoverShow = true;
|
|
420
|
-
}
|
|
420
|
+
if (e.key === Key.ENTER && !this.popoverShow) {
|
|
421
|
+
this.popoverShow = true;
|
|
421
422
|
}
|
|
422
423
|
if (this.popoverShow) {
|
|
423
424
|
list && list.onKeyDown(e);
|
|
424
425
|
}
|
|
425
|
-
}
|
|
426
|
-
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
427
428
|
};
|
|
428
429
|
</script>
|