regression on 4.22.0 and following: .focus() doesn't work anymore inside an Accordion(open=False) #7895
Closed
1 task done
Labels
bug
Something isn't working
Priority
High priority issues
Regression
Bugs did not exist in previous versions of Gradio
Describe the bug
Thank you for the tremendous work on Gradio!
I use Accordion(open=False) to hide components (such as a Dropdown and some buttons) and show them only when the user need it.
I then use a .focus event on the Dropdown.
It worked perfectly with gradio 4.21.0 but since 4.22.0, 4.23.0 and 4.24.0, it doesn't work anymore : it is impossible to open the Dropdown when I listen to gr.Dropdown.focus() inside my Accordion (only when this Accordion is initially set to open=False), since the Accordion closes itself automatically
this prevents me from using 4.22.0 and newer versions
and another idea : it would be nice to have an open=True parameter for gr.Dropdown as in Accordions
Thanks a lot!
Have you searched existing issues? 🔎
Reproduction
Screenshot
before I click on the Dropdown
and then the Accordion closes itself when I click on the Dropdown, which disappears
Logs
System Info
Severity
I can work around it
The text was updated successfully, but these errors were encountered: