You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Modal / Dialog] Problem with displaying the header (generally the top part) when they are larger than the window height OOTB + unexpected scroll to top while clicking somewhere
#18321
An additional, related issue we observed, is that on a huge modal with turned-on autofocus, if you scroll down and click somewhere on it (which is not an interactive element, like a button) it will cause a scroll to top.
Steps to reproduce: the same as above, but after scrolling somewhere lower, click on empty space on the modal.
Result: Modal is scrolled to the top
Expected result: no action
Possible workaround:
turn off autofocus in cxFocus config
add #focus into the element, you want to be focused
Pucek9
changed the title
Problem with displaying the header (generally the top part) of the modal when they are larger than the window height OOTB
Problem with displaying the header (generally the top part) of the modal when they are larger than the window height OOTB + unexpected scroll to top while clicking somewhere
Feb 21, 2024
Pucek9
changed the title
Problem with displaying the header (generally the top part) of the modal when they are larger than the window height OOTB + unexpected scroll to top while clicking somewhere
[Modal / Dialog] Problem with displaying the header (generally the top part) when they are larger than the window height OOTB + unexpected scroll to top while clicking somewhere
Feb 21, 2024
Describe the bug
Dialogs are not displayed correctly when their height is large, relative to the screen
Tell us the version of Spartacus
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Scroll behavior should allow to display whole content, the top of the modal as well
Screenshots
Desktop (please complete the following information):
Additional context:
It's not only about this specified modal, but generally.
The bottom part is displayed fine:
Possible workaround
to apply only for very high modals (better to get a general solution)
The text was updated successfully, but these errors were encountered: