diff --git a/src/components/InputSelect/PdapInputSelect.vue b/src/components/InputSelect/PdapInputSelect.vue index c32c575..2d6ffce 100644 --- a/src/components/InputSelect/PdapInputSelect.vue +++ b/src/components/InputSelect/PdapInputSelect.vue @@ -24,10 +24,22 @@ role="combobox" :tabindex="0" v-bind="$attrs" - @click="toggleOpen" + @click="handleClick" @keydown="handleKeyDown" > + +
@@ -45,7 +57,7 @@ " >
  • (), { + combobox: false, placeholder: 'Select an option', + filter: (searchText, options) => { + if (!searchText) return options; + return options.filter((option) => + option.label.toLowerCase().includes(searchText.toLowerCase()) + ); + }, } ); const slots = useSlots(); @@ -94,6 +113,11 @@ const selectedOption = ref