mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #3379 - AutoComplete: Duplicate Value
This commit is contained in:
parent
46c3c9738e
commit
85ae6d9e5e
1 changed files with 2 additions and 1 deletions
|
@ -424,7 +424,8 @@ export default {
|
|||
if (this.forceSelection) {
|
||||
let valid = false;
|
||||
|
||||
if (this.visibleOptions) {
|
||||
// when forceSelection is on, prevent called twice onOptionSelect()
|
||||
if (this.visibleOptions && !this.multiple) {
|
||||
const matchedValue = this.visibleOptions.find((option) => this.isOptionMatched(option, this.$refs.focusInput.value || ''));
|
||||
|
||||
if (matchedValue !== undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue