Refactor #5067
parent
7159d0c5ab
commit
e7d3074af2
|
@ -2666,9 +2666,17 @@ export default {
|
||||||
this.overlayVisible = false;
|
this.overlayVisible = false;
|
||||||
}
|
}
|
||||||
} else if (event.code === 'Enter') {
|
} else if (event.code === 'Enter') {
|
||||||
if (this.manualInput && event.target.value !== null && event.target.value?.trim() !== '' && this.isValidSelection(this.parseValue(event.target.value))) {
|
if (this.manualInput && event.target.value !== null && event.target.value?.trim() !== '') {
|
||||||
|
try {
|
||||||
|
let value = this.parseValue(event.target.value);
|
||||||
|
|
||||||
|
if (this.isValidSelection(value)) {
|
||||||
this.overlayVisible = false;
|
this.overlayVisible = false;
|
||||||
}
|
}
|
||||||
|
} catch (err) {
|
||||||
|
/* NoOp */
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
overlayRef(el) {
|
overlayRef(el) {
|
||||||
|
|
Loading…
Reference in New Issue