Fomantic-UI
Fomantic-UI copied to clipboard
[modal] scrolling content modal re-open at top
Feature Request
At present, if a modal has scrolling content, if the modal is closed and reopened, the content will start at the previously scrolled position. Perhaps instead, when a modal is re-opened, the scrolling position should return to the top of the content for a better User eXperience
As far as i can tell, this isn't baked in
This could potentially be introduced by a method, where the default is to open it at the top in order to for developers to keep the existing functionality
Existing Example
https://fomantic-ui.com/modules/modal.html#internally-scrolling-content
Is there any eta of this bug/feat, I've had this problem for a long time ?
@dutrieux Not yet any fix at the moment.
You can reset the scroll position with the callback onHide. Here is the example fiddle.