mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +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) {
|
if (this.forceSelection) {
|
||||||
let valid = false;
|
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 || ''));
|
const matchedValue = this.visibleOptions.find((option) => this.isOptionMatched(option, this.$refs.focusInput.value || ''));
|
||||||
|
|
||||||
if (matchedValue !== undefined) {
|
if (matchedValue !== undefined) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue