kobalte
kobalte copied to clipboard
Inputs inside accordions require multiple clicks to focus
Describe the bug
An <input> within an accordion requires being clicked twice to receive focus. I'm not entirely sure why but it seems like AccordionTrigger hijacks the first click's onFocusIn.
To Reproduce Try focusing and unfocusing the input in this repro by clicking in and out of it: https://stackblitz.com/edit/github-fk8exj-ruezfg?file=src%2Froutes%2Findex.tsx
Expected behavior The input should instantly focus, rather than requiring 2 clicks
I also found this problem, is there a any solution?
I think this is a duplicate of #236 🤔
fixed by #483