-
Notifications
You must be signed in to change notification settings - Fork 36
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: input field label autocomplete bug fix #289
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
ui/input-text/src/InputText.tsx
Outdated
@@ -135,16 +139,55 @@ export const InputText = React.forwardRef<HTMLInputElement, InputTextProps>( | |||
}, | |||
ref | |||
) => { | |||
const [helperId, setHelperId] = React.useState<string | undefined>(); | |||
const [errorId, setErrorId] = React.useState<string | undefined>(); | |||
globalJsTriggerAnimations(); |
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.
Explicitly calling our trigger animations here. The animations have to be in globalCss in order for them to not lose their names. Creating the animations inside the component did not work, not as a const as recommended by the Stitches API, when inside the unstyledInput styles, etc. since Stitches changes the class names. Also followed this pattern in TextArea. This also means that the styles will be applied even if our globalStyles are not being used.
What I did
Input field label autocomplete bug fix