Before this commit, after: - Drop a popup, - Click on the undo button, => The invisible elements panel was still displayed, with the popup entry. To fix that, the panel visibility is updated on the 'historyUndo'/'historyRedo' events alongside refreshing the snippets editors. task-2687506 closes odoo/odoo#98807 X-original-commit: 76704f47db46ac7e71a894f620d8061a3eb594a7 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>