0
Fork 0
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:
Kevin Ansfield 2018-05-14 15:48:29 +01:00
parent 505aee4dac
commit e9ead57da5

View file

@ -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;
}