mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-19 20:52:32 -04:00
Adds a guard around all calls to `.render()` after the first one (which sets the initial state) to prevent DOM manipulation when not needed. The original behaviour meant the action buttons were re-rendered when items from the list of templates/folders were selected/deselected, even if the state hadn't changed. This meant, in some cases, focus was shifted to the buttons when you were still selecting/deselecting.