formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.89k stars 1.06k forks source link

FIO-7548: fixed an issue where select dropdown does not overlap the datagrid and causes vertical scroll #5411

Closed TanyaGashtold closed 10 months ago

TanyaGashtold commented 11 months ago

Link to Jira Ticket

https://formio.atlassian.net/browse/FIO-7548

Description

What changed?

The choices dropdown does not overlap the datagrid and causes vertical scroll because our datagrid component has overflow-x set to auto so that the horizontal scroll appears when it has many child components that dees not fit the screen width. When overflow-x is set to any value except 'visible', the overflow-y gets value 'auto' even if we set it to 'visible' by css that causes vertical scroll when select dropdown is open. In other words, if we are using visible for either overflow-x or overflow-y and something other than visible for the other, the visible value is interpreted as auto. The workaround for it is to position the dropdown against any element outside the container with overflow-x. So, this PR sets position 'fixed' for choices select dropdown when the component is inside the datagrid.

How has this PR been tested?

Manually

Checklist: