>
            item.label.toLowerCase().startsWith(pressedKey.toLowerCase()),
        )
        if (option) {
            const index = this.options.indexOf(option)
            const allOptions = document.querySelectorAll('.combobox-option')
            if (allOptions[index]) {
                allOptions[index].focus()
            }
        }
    },
}" class="w-full max-w-xs flex flex-col gap-1" x-on:keydown="highlightFirstMatchingOption($event.key)" x-on:keydown.esc.window="isOpen = false, openedWithKeyboar