Fix double items in dropdown [SCI-12267]

This commit is contained in:
Anton 2025-08-18 10:26:36 +02:00
parent ff99f1df65
commit c85e7ce1e2

View file

@ -317,8 +317,15 @@ export default {
return this.newValue === value;
},
open() {
if (!this.disabled) this.isOpen = true;
this.fetchOptions();
if (this.disabled || this.isOpen) return;
this.isOpen = true;
if (this.optionsUrl) {
this.fetchedOptions = [];
this.nextPage = 1;
this.fetchOptions();
}
},
clear() {
this.newValue = this.multiple ? [] : null;