From 4dfea513b22088cc1c4d6d20102238d2b953d870 Mon Sep 17 00:00:00 2001 From: Arnaud Benhamdine Date: Wed, 24 Apr 2024 12:05:14 +0200 Subject: [PATCH] Re-enable search input on setOptions --- src/virtual-select.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/virtual-select.js b/src/virtual-select.js index 54341a2..40ca2b2 100755 --- a/src/virtual-select.js +++ b/src/virtual-select.js @@ -1372,6 +1372,12 @@ export class VirtualSelect { this.hasOptionGroup = hasOptionGroup; this.hasEmptyValueOption = hasEmptyValueOption; this.setSortedOptions(); + + if (optionsLength) { + const $eleSearchInput = this.$searchInput; + $eleSearchInput.removeAttribute('disabled'); + } + } setServerOptions(options = []) {