Skip to content
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 dynamic :focused? by tracking in text-input's *state #71

Closed
wants to merge 1 commit into from

Conversation

Quezion
Copy link
Contributor

@Quezion Quezion commented Mar 24, 2023

Fix #50 (Using text-input in ui/dynamic makes it unfocusable)

Seems a little clunky, especially because the wrapping defn text-field now has an additional deref against the *state

Initial commit has known issue where parent on-key-focus is bugged and do not receive focus, even when the child text-input receives focus. This means they can't trigger any key-events. I'm assuming this means there's a better fix for focus somewhere deeper in the library?

Fix HumbleUI#50 (Using text-input in ui/dynamic makes it unfocusable)

Initial commit has known issue where parent focusables are still
bugged and do not receive focus.
@tonsky
Copy link
Contributor

tonsky commented Mar 24, 2023

No, let’s not do that. I don’t want to keep duplicate of focused? information in text-field state map. I’d prefer if focus-controller would take care of that (even though right now it doesn’t seem possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Text field inside of dynamic loses focus when re-rendered
2 participants