mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Refactor #5067
This commit is contained in:
parent
7159d0c5ab
commit
e7d3074af2
1 changed files with 10 additions and 2 deletions
|
@ -2666,8 +2666,16 @@ 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() !== '') {
|
||||||
this.overlayVisible = false;
|
try {
|
||||||
|
let value = this.parseValue(event.target.value);
|
||||||
|
|
||||||
|
if (this.isValidSelection(value)) {
|
||||||
|
this.overlayVisible = false;
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
/* NoOp */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue