diff --git a/Editor.js b/Editor.js index 5e5c488..ce4b830 100644 --- a/Editor.js +++ b/Editor.js @@ -207,8 +207,8 @@ class Editor extends List { for (let entry of this.queryEntries('.highlight')) { entry.getElement().classList.toggle('highlight', false); } - this.container_.setAttribute('data-arch-snapshot', ''); this.container_.setAttribute('data-arch-refresh', ''); + this.container_.setAttribute('data-arch-snapshot', ''); e.stopPropagation(); e.preventDefault(); return; diff --git a/EditorGroup.js b/EditorGroup.js index e628148..7c01e08 100644 --- a/EditorGroup.js +++ b/EditorGroup.js @@ -75,8 +75,8 @@ class EditorGroup extends EditorEntryBase { case ' ': this.elem_.classList.toggle('highlight'); - this.elem_.setAttribute('data-arch-snapshot', ''); this.elem_.setAttribute('data-arch-refresh', ''); + this.elem_.setAttribute('data-arch-snapshot', ''); e.stopPropagation(); e.preventDefault(); break; diff --git a/EditorLink.js b/EditorLink.js index 87f8c96..b57c058 100644 --- a/EditorLink.js +++ b/EditorLink.js @@ -93,8 +93,8 @@ class EditorLink extends EditorEntryBase { case ' ': this.elem_.classList.toggle('highlight'); - this.elem_.setAttribute('data-arch-snapshot', ''); this.elem_.setAttribute('data-arch-refresh', ''); + this.elem_.setAttribute('data-arch-snapshot', ''); e.stopPropagation(); e.preventDefault(); break;