Skip to content

Commit 310ea2a

Browse files
author
Emilien Durieu (edu)
committed
[FIX] no rollback when adding unremovable node
1 parent 6a4d974 commit 310ea2a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,8 @@
3232
"prettier": "^2.2.1",
3333
"rollup": "^2.36.1",
3434
"rollup-plugin-css-only": "^3.1.0"
35+
},
36+
"dependencies": {
37+
"uuid": "^3.4.0"
3538
}
3639
}

src/editor.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,6 @@ export class OdooEditor extends EventTarget {
327327
}
328328
case 'childList': {
329329
record.addedNodes.forEach(added => {
330-
this._toRollback =
331-
this._toRollback ||
332-
(containsUnremovable(added) && UNREMOVABLE_ROLLBACK_CODE);
333330
const mutation = {
334331
'type': 'add',
335332
};

0 commit comments

Comments
 (0)