Reset dimmer after .ui.dimmer removed #1314
-
I migrated from Semantic UI for a few updates and am trying to solve a problem. If a segment is dimmed, then the contents of that segment are changed (such as from an ajax call) and the .ui.dimmer child element is deleted, the dimming on that segment seems not work anymore and things go crazy. I'm looking for a way to reset the dimming capabilities on the segment. I've gotten around this by never touching the .ui.dimmer and adding a child to the .segment that is the content but I feel like there should be a way to reset the dimmer. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
This is already possible by calling the |
Beta Was this translation helpful? Give feedback.
-
Awesome, that's exactly what I was looking for. |
Beta Was this translation helpful? Give feedback.
-
That's because your example is overwriting the html and then the button trigger is not available anymore ;) |
Beta Was this translation helpful? Give feedback.
-
I noticed that right after I posted it. You were too quick! |
Beta Was this translation helpful? Give feedback.
This is already possible by calling the
preinitialize
behavior prior to hiding the dimmer.See https://jsfiddle.net/usje9cyz/