mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-10 05:14:05 -05:00
The `release` method is meant to clean up a sticky element before removal from the store. The part of this that cleared CSS added due to being in dialog mode was only run if still in that mode. In the template folder JS, we set the mode before running `recalculate` so elements can be cleaned in a different mode to that they were last in. This meant some CSS wasn't being cleaned up. This sometimes caused an effect where elements that were added back to the DOM but not stuck would still have CSS used when they were last stuck. This commit also includes the addition of some missing code that adds back CSS to offset an element when in a dialog stack.