Since [1], a new option was added to the masonry snippet to be able to switch its whole content to a different template. That option was working great... until [2] was merged. Indeed since then, each option change induces an update of the whole editor panel. In this case, this happened: - Add a masonry snippet. - Click inside one of its column (the masonry options and the column options appear). - Switch masonry snippet template. - An option was changed -> Update the whole editor panel... including the column options... but that column is not there anymore since removed by the template switching option. Now, we ignore options whose target is not in the document anymore and make sure to enable the right options post panel update. This commit could be backported later on (even though the masonry option was not available before, the bug is potentially there for community options). [1]: https://github.com/odoo/odoo/commit/c90ab7b6646b603dcd0a49387b5eeba60ce17f59 [2]: https://github.com/odoo/odoo/commit/2cbb691a84ce186ddd34a2a4c76d95671ed6e834 Part of https://github.com/odoo/odoo/pull/71143 Part-of: odoo/odoo#71143