Skip to content

Conversation

@matyasf
Copy link
Collaborator

@matyasf matyasf commented Jan 9, 2026

It was using a :focus-within selector, but this was not a good solution when the TextInput contained a focusable element.
The new solution only displays the component's focus ring if an input is focused, preventing double focus.

To test: Check out examples of TextInput and components that use it (DateInput, Select, ..) that it displays focus rings correctly when clicked or tabbed in with keyboard. The 'password' example in TextInput was broken in the previous version

@matyasf matyasf requested a review from balzss January 9, 2026 16:01
@matyasf matyasf self-assigned this Jan 9, 2026
@matyasf matyasf requested a review from ToMESSKa January 9, 2026 16:01
…gs when a focusable element is rendered inside

It was using a :focus-within selector, but this was not a good solution when the TextInput contained
a focusable element.
The new solution only displays the component's focus ring if an input is focused, preventing double
focus
@matyasf matyasf force-pushed the textinput_focus_fix branch from 37b729d to 6e13703 Compare January 9, 2026 16:04
@github-actions
Copy link

github-actions bot commented Jan 9, 2026

PR Preview Action v1.8.0
Preview removed because the pull request was closed.
2026-01-14 10:57 UTC

@matyasf matyasf requested review from joyenjoyer and removed request for balzss January 13, 2026 10:35
Copy link
Contributor

@joyenjoyer joyenjoyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great, it works well with the examples!

@matyasf matyasf merged commit 35964a4 into v12 Jan 14, 2026
8 of 9 checks passed
@matyasf matyasf deleted the textinput_focus_fix branch January 14, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants