-
Notifications
You must be signed in to change notification settings - Fork 76
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
Combobox floating-ui does not update its position when overlayPosition is fixed
#8708
Comments
Used the provided repro case and dug a bit. This started happening in |
I ran into the same issue with When trying to reproduce the issue in a codepen I noticed Codepen: https://codepen.io/dmap/pen/vYMXjam |
Any chance we can escalate getting a fix for this? It affects a lot of different places within analysis workflows, including the new ModelBuilder web experience |
@geospatialem Bumping priority on this one. I'll pick up this spike next week and will provide a more accurate estimate/timeline for this. |
I tested and confirmed this fixes the issue for Maps SDK for JS's FeatureForm and Editor widgets. |
@nCastle1 Thanks for testing! Closing as verified based on ☝️. |
Check existing issues
Actual Behavior
When the combobox scrolls/moves while the dropdown is open, the dropdown floats away from the input.
Screen.Recording.2024-02-08.at.1.24.52.PM.mov
Expected Behavior
I expect the combobox dropdown to stick to the input, like it did in a previous release. This matches the behavior of input-date-picker with the same overlayPositioning setting.
Screen.Recording.2024-02-08.at.1.32.15.PM.mov
Reproduction Sample
https://gist.github.com/nCastle1/a290f6ef4cb47cebcc37840d0c3ff122
Reproduction Steps
Place combobox in scrollable container, open combobox, scroll.
Reproduction Version
2.4.0
Relevant Info
Tested with Edge on macOS.
I noticed that the main difference between how input-date-picker does it and how combobox does it is on this line: https://github.com/Esri/calcite-components/blob/9eb680a5045e142d6db4c1d971c69961a73a44ee/packages/calcite-components/src/components/combobox/combobox.tsx#L960
input-date-picker wraps this in requestAnimationFrame():
I tested locally and that fixed the issue.
Regression?
Yes
Priority impact
p4 - not time sensitive
Impact
Can be worked around using the
reposition
method and monitoring for scroll on containers, but the workaround is clunky.Calcite package
Esri team
ArcGIS Maps SDK for JavaScript
The text was updated successfully, but these errors were encountered: