appsmith
appsmith copied to clipboard
[Bug]: Options of Select Field Inside JSON Form Displayed Incorrectly While Scrolling
Is there an existing issue for this?
- [X] I have searched the existing issues
Description
If there's a Select type of field in a JSON Form towards the bottom, the options menu either gets displayed outside the form or jumps into another position and gets misaligned when scrolling. This happens in both edit and deployed mode.
Steps To Reproduce
- Add a JSON Form with a Select field towards the bottom.
- Click on the Select field to open the options menu.
- Scroll up and down as shown in the attached loom recording.
Public Sample App
No response
Issue video log
https://www.loom.com/share/9890c15635024632ba3a1823d0216de0
Version
Cloud v1.8.7-SNAPSHOT
To fix this for both Select and MultiSelect, We'd need to disable scrolling when the dropdown is opened. This is the same method we took for MultiSelect Widget and Menu button in Table Widget.
Just Observed there seems to be a regression on the Menu button in the Table Widget😂😂😂. https://github.com/appsmithorg/appsmith/pull/12199
But to solve these issues, we'd need to disable scrolling till the dropdown closes cc @dilippitchika
https://user-images.githubusercontent.com/31691737/206643809-dffbbe4c-3d04-4ad4-ac0b-49e7dc76e57d.mov
Ok cool, looks like we need a decision for all popovers in widgets and how scrolling should behave then.