-
Notifications
You must be signed in to change notification settings - Fork 33
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
base: v3.0.0/develop
Are you sure you want to change the base?
Conversation
View your branch deployment here: https://mi6.github.io/ic-ui-kit/branches/1960-ic-text-field-autofocus-prop-not-working-unless-text-field-label-is-hidden/web-components |
d116d90
to
0abf36b
Compare
f4d6c15
to
acf784e
Compare
packages/web-components/src/components/ic-text-field/ic-text-field.tsx
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/ic-text-field/ic-text-field.tsx
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/ic-text-field/ic-text-field.tsx
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/ic-text-field/ic-text-field.tsx
Outdated
Show resolved
Hide resolved
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.
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
acf784e
to
e9c3d77
Compare
88e126d
to
49484eb
Compare
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
e9c3d77
to
671641a
Compare
Summary of the changes
autofocus
was only being applied when the label was hidden, this was due to the child components rendering after theic-text-field
components.Changes;
setInterval
waits until typography is hydrated before setting focus on inputautofocus
renamed fromauto-focus
to align more closely with native attributeRelated issue
#1960