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

1960 ic text field autofocus prop not working unless text field label is hidden #2901

Open
wants to merge 3 commits into
base: v3.0.0/develop
Choose a base branch
from

Conversation

gd2910
Copy link
Contributor

@gd2910 gd2910 commented Dec 13, 2024

Summary of the changes

autofocus was only being applied when the label was hidden, this was due to the child components rendering after the ic-text-field components.

Changes;

  • setInterval waits until typography is hydrated before setting focus on input
  • autofocus renamed from auto-focus to align more closely with native attribute

Related issue

#1960

@gd2910 gd2910 force-pushed the 1960-ic-text-field-autofocus-prop-not-working-unless-text-field-label-is-hidden branch 4 times, most recently from d116d90 to 0abf36b Compare December 17, 2024 12:44
@gd2910 gd2910 marked this pull request as ready for review December 17, 2024 12:44
@gd2910 gd2910 force-pushed the 1960-ic-text-field-autofocus-prop-not-working-unless-text-field-label-is-hidden branch 2 times, most recently from f4d6c15 to acf784e Compare December 19, 2024 13:04
Copy link
Contributor

@GCHQ-Developer-847 GCHQ-Developer-847 left a comment

Choose a reason for hiding this comment

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

I think it would be worth updating the info about the breaking changes in the commit messages to be even clearer about what the change actually is

@gd2910 gd2910 force-pushed the 1960-ic-text-field-autofocus-prop-not-working-unless-text-field-label-is-hidden branch from acf784e to e9c3d77 Compare January 6, 2025 10:19
gd2910 added 3 commits January 6, 2025 11:03
bugfix for when autofocus prop would only work when label was hidden and small prop rename for v3

BREAKING CHANGE: prop rename from auto-focus to autofocus, more closely aligning with native html attribute
added cypress test and react storybook for autofocus attribute
ic-text-field docs update

BREAKING CHANGE: prop rename to more closely align with native html attribute
@gd2910 gd2910 force-pushed the 1960-ic-text-field-autofocus-prop-not-working-unless-text-field-label-is-hidden branch from e9c3d77 to 671641a Compare January 6, 2025 11:03
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.

3 participants