Closed Aravinda93 closed 1 year ago
I believe it's because the dialogue component will focus on the first focusable element https://headlessui.com/react/dialog#managing-initial-focus
@hellojessicagraham
Yes it was because of that only. Thanks a lot for pointing it out. I have changed the initial focus element to some button so it wont be opened any more. Thanks again :)
I am using the VueMultiselect within my Nuxt 3 application. I am using it within my Nuxt Headless UI Transition Dialog modal. When I open the modal the multiselect is open by default.
I have 2 of them and one of them is always open. If I just keep one then that is open but if there is 2 then first one is open.
components/MultiSelect.vue:
Following is my uage on Dialog components/MyDialog.vue:
Pages/View.vue:
As soon as the Dialog open after clicking on the button I see that the 1st multiselect dropdown is open by default. How to fix this?