Page not scrollable after showing and hiding dimmer #1256
-
Reproducible test case: https://jsfiddle.net/8vhta2b6/ Looks like after the dimmer is shown and hidden, the body element retains "dimmable dimmed" classes, which refrains it from being scrolled. The same thing also happens with modals, which I assume use the same underlying dimmer logic. With modals, it also prevents additional modals from being opened. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
That's because you are removing the dimmer while the hide transition still takes place The point here is, that dimmer currently doesnt have a |
Beta Was this translation helpful? Give feedback.
-
Oh well... no need to refactor as you can already give a callback to the hide behavior 😄 $("#progressdimmer").dimmer('hide',function(){
$("#progressdimmer").remove();
}); |
Beta Was this translation helpful? Give feedback.
Oh well... no need to refactor as you can already give a callback to the hide behavior 😄
See https://jsfiddle.net/hym0ew5j/2/