-
- Downloads
[FIX] web_editor: Fix style formating traceback
In some case, when removing format on element with multiple textNode, the code generate a traceback. The loops in `toggleFormat` provide a limit element `closestDecorated` to the `splitAroundUntil` util. However this limit element can be split and dumped by the format removal. In this case the reference was never encountered in the DOM by the `splitAroundUntil` code and will bubble all the way to the `<html>` TAG an try to split it, which generate an error. We fix it by getting the `closestDecorated` in every loop. task-2850686 X-original-commit: 2d93345c Part-of: odoo/odoo#91786
Please register or sign in to comment