Before this commit, after removing a snippet followed by a popup in the DOM, the popup options were displayed while the popup was closed. Indeed, selecting the next snippet after one's removal is a feature that was introduced by [1] but did not consider that the next snippet could be an invisible one (like a popup). [1]: https://github.com/odoo/odoo/commit/2cdd95f140b6ec5f3b95ee19bde2f281de21f337 task-2735551 closes odoo/odoo#83512 X-original-commit: cc802d33885700543c753558dc40cc07d971f87f Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>