-
Notifications
You must be signed in to change notification settings - Fork 4
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
Autofill popover offset in reshaped 2.4.4 #183
Comments
Thanks, I can reproduce this and know why it happens now: Going to find a way around it and ship a patch |
I've published 2.4.5 with the fix in case this is blocking, but it also includes minor updates for the default theme values related to the next minor release. You can either just update to 2.4.5 and try if the fix is working or if keeping current theme values is important - you can keep them as a custom theme. They will be updated for the Figma library in 2.5.0 as well. |
And this is a native autocomplete, right? Does it behave correctly in the case of replacing TextField with a native html input? |
One task left for the release there, so planning to be done with it around this Wed/Thu. |
@blvdmitry getting this in my implementation. Was reshaped/cli/theming/definitions/base removed in 2.4.4 > 2.4.5 ? |
Let me check this, I think viewports might be stored in a separate object that was not a part of the js theme definition, so I'll make sure to include it and release a patch with it |
Let me know when you have an update! or if there is anything else that I can provide from my end |
Just checking it again and it actually seems to exist there: https://codesandbox.io/s/objective-colden-p894rr?file=/src/App.tsx The types are not great though so I'm going to make sure they work as expected in a patch. Does output 900 in your case as well? |
Updated the theme definition types in 2.5.5 |
It's |
Works, thank you! |
Describe the bug
The position of the autofill popover is offset when compared with input field. Horizontal position of autofill depends on window width. Bug not present in 2.4.2, introduced in 2.4.4 to the best of my digging.
Expected behavior
Autofill popover is centered on the input field being clicked.
Screenshots
To Reproduce
Open your IDE of choice.
Clone my example repo OR go to the vercel app I deployed.
Go to branch autofill-popover-off-center-bug
Run npm install && npm run dev.
In your browser, open the localhost url & port.
Click on TextField component to focus and select an autofill value. If no autofill value is present, I found Safari allows you to generate a random autofill email address to use.
Observe error. See attached screenshots/recording for reference.
Versions:
Reshaped 2.4.4
Chrome v117.0.5938.92
Safari 16.5.1
The text was updated successfully, but these errors were encountered: