kobaltedev / kobalte

A UI toolkit for building accessible web apps and design systems with SolidJS.
https://kobalte.dev
MIT License
1.2k stars 61 forks source link

Inputs inside accordions require multiple clicks to focus #440

Open Brendonovich opened 1 month ago

Brendonovich commented 1 month ago

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

army-u8 commented 1 week ago

I also found this problem, is there a any solution?

katywings commented 1 week ago

I think this is a duplicate of #236 🤔