We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84c914f commit 9d4f26eCopy full SHA for 9d4f26e
web_src/js/features/repo-issue-edit.ts
@@ -100,8 +100,10 @@ async function tryOnEditContent(e) {
100
comboMarkdownEditor.container.addEventListener(ComboMarkdownEditor.EventUploadStateChanged, syncUiState);
101
cancelButton.addEventListener('click', cancelAndReset);
102
form.addEventListener('submit', saveAndRefresh);
103
+ } else {
104
+ form = editContentZone.querySelector('form');
105
+ form.classList.remove('ignore-dirty'); // the form is shown again, respect the "dirty" state
106
}
- form.classList.remove('ignore-dirty');
107
108
// FIXME: ideally here should reload content and attachment list from backend for existing editor, to avoid losing data
109
if (!comboMarkdownEditor.value()) {
0 commit comments