Reset theme when editing is canceled
This commit is contained in:
parent
3bbe5840ee
commit
62378007b1
1 changed files with 3 additions and 0 deletions
|
@ -168,6 +168,9 @@ function openEditor() {
|
|||
if (doReset) {
|
||||
container.classList.remove('edit');
|
||||
form.reset();
|
||||
|
||||
let selectedTheme = form.querySelector(`.theme-picker--option[checked]`).value;
|
||||
bodyElement.className = `theme-${selectedTheme}`;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue