-
|
Not sure if this is unique to my project (all packages up to date), but I've noticed that when a modal contains enough content to require scroll bars, rather than the modal opening with the top visible, it is scrolled all the way to the bottom. Can I open a modal with the top visible? Is this configurable perhaps? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
@PhiloNL - You've moved this from Issues to Discussion without comment. Does that mean that this isn't a bug? If so, how do I change the behaviour? Is this documented anywhere? Thanks. |
Beta Was this translation helpful? Give feedback.
-
|
For anybody else who might encounter this... I found the issue was being caused by a button at the bottom of the modal that was hijacking focus. This prompted the browser to scroll said button into view. Although unknown to me before this, it seems to be a common issue. This page covers a few ways to prevent/work around the behaviour. Personally, I opted to add a close button to the top of the modal. This gives the browser something to focus on so it stops looking for buttons further down the modal. |
Beta Was this translation helpful? Give feedback.
For anybody else who might encounter this...
I found the issue was being caused by a button at the bottom of the modal that was hijacking focus. This prompted the browser to scroll said button into view. Although unknown to me before this, it seems to be a common issue.
This page covers a few ways to prevent/work around the behaviour. Personally, I opted to add a close button to the top of the modal. This gives the browser something to focus on so it stops looking for buttons further down the modal.