Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Koenig - Fixed deletion of / not closing the /-menu
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinansfield committed May 14, 2018
1 parent 17b2b1a commit 3caa78d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/koenig-editor/addon/components/koenig-slash-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default Component.extend({
let {head: {section}} = editorRange;

// close the menu if we're on a non-slash section (eg, when / is deleted)
if (section && section.text && section.text.indexOf('/') !== 0) {
if (section && (section.text || section.text === '') && section.text.indexOf('/') !== 0) {
this._hideMenu();
return;
}
Expand Down

0 comments on commit 3caa78d

Please sign in to comment.