mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Koenig - Fixed deletion of /
not closing the /-menu
refs https://github.com/TryGhost/Ghost/issues/9623
This commit is contained in:
parent
505aee4dac
commit
e9ead57da5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue