Fomantic-UI icon indicating copy to clipboard operation
Fomantic-UI copied to clipboard

[modal] scrolling content modal re-open at top

Open jamessampford opened this issue 3 years ago • 2 comments
trafficstars

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

jamessampford avatar Apr 06 '22 10:04 jamessampford

Is there any eta of this bug/feat, I've had this problem for a long time ?

dutrieux avatar Jun 25 '23 16:06 dutrieux

@dutrieux Not yet any fix at the moment.

You can reset the scroll position with the callback onHide. Here is the example fiddle.

ko2in avatar Jun 28 '23 10:06 ko2in