[FIX] web_editor: make checklist work in firefox

task-2833778

closes odoo/odoo#89918

X-original-commit: e3304148035ec04f435475bbf9ba803dc630ae37
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
This commit is contained in:
Nicolas Bayet
2022-04-28 09:00:45 +02:00
parent afb957e347
commit c40d9e513c
@@ -2817,7 +2817,7 @@ export class OdooEditor extends EventTarget {
const node = ev.target;
// handle checkbox lists
if (node.tagName == 'LI' && getListMode(node.parentElement) == 'CL') {
const beforStyle = window.getComputedStyle(node, 'before');
const beforStyle = window.getComputedStyle(node, ':before');
const style1 = {
left: parseInt(beforStyle.getPropertyValue('left'), 10),
top: parseInt(beforStyle.getPropertyValue('top'), 10),