Skip to content

Commit

Permalink
Merge pull request #138 from craftcms/bugfix/selectize-select-on-focu…
Browse files Browse the repository at this point in the history
…s-slideout-bug

prevent constant reopen of slideout
  • Loading branch information
brandonkelly authored Sep 26, 2023
2 parents 69a76a6 + 72da884 commit 1b15638
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for CKEditor for Craft CMS

## Unreleased

- Fixed a bug where the CKEditor config-creation slideout could keep reappearing if canceled. ([#138](https://github.com/craftcms/ckeditor/pull/138))

## 3.6.0 - 2023-09-13

- CKEditor is now released under the GPL-3.0 license.
Expand Down
3 changes: 3 additions & 0 deletions src/templates/_field-settings.twig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
});
});
slideout.on('close', () => {
if (selectize.lastValidValue === '__add__') {
selectize.lastValidValue = '';
}
selectize.focus();
});
}
Expand Down

0 comments on commit 1b15638

Please sign in to comment.