Fixed browser built-in undo issue
This commit is contained in:
parent
848164fdf1
commit
edfd8a1603
@ -1073,8 +1073,10 @@ define([
|
|||||||
else {
|
else {
|
||||||
// Remove outdated sections
|
// Remove outdated sections
|
||||||
sectionsToRemove.forEach(function(section) {
|
sectionsToRemove.forEach(function(section) {
|
||||||
// section can be already removed
|
// section may be already removed
|
||||||
section.elt.parentNode === contentElt && contentElt.removeChild(section.elt);
|
section.elt.parentNode === contentElt && contentElt.removeChild(section.elt);
|
||||||
|
// To detect sections that come back with built-in undo
|
||||||
|
section.elt.generated = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
if(insertBeforeSection !== undefined) {
|
if(insertBeforeSection !== undefined) {
|
||||||
|
Loading…
Reference in New Issue
Block a user