makeshift way to close the headlessui listbox due to absence of open state on the listbox
(button: HTMLButtonElement | null)
| 52 | |
| 53 | /**makeshift way to close the headlessui listbox due to absence of open state on the listbox */ |
| 54 | function closeDropDown(button: HTMLButtonElement | null) { |
| 55 | if (!button) return; |
| 56 | button.classList.add("hidden"); |
| 57 | setTimeout(() => { |
| 58 | button.classList.remove("hidden"); |
| 59 | }); |
| 60 | } |
| 61 | |
| 62 | function ModelOption({ |
| 63 | option, |
no test coverage detected