-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix focus on hidden widget in Either #1860
Conversation
Thanks! |
Yeah, I was thinking about checking all children-hiding widgets, Tabs was on the top of my list. |
Tabs, Viewswitcher and Either are the only one i can think of and Viewswitcher already does it. |
968554d
to
926bb1f
Compare
I did the change on |
4b629df
to
850f0c5
Compare
I couldn't reproduce the bug in the example as the tab bar steals the focus anyway when we click on a tab Whatever, it's still cleaner. I also removed spurious ctx.request_layout calls, as it's already called in ctx.children_changed
850f0c5
to
742b283
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you!
closes #1858