0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Koenig - Only deselect cards on cursor changes within the doc

refs https://github.com/TryGhost/Ghost/issues/9505
- prevents clicks outside of the document canvas from exiting edit mode
- useful for cards that include modals because previously any click on a modal would exit edit mode and usually remove the modal from view
This commit is contained in:
Kevin Ansfield 2018-04-20 11:34:17 +01:00
parent 21007d0630
commit dcd76b5a5e

View file

@ -520,7 +520,7 @@ export default Component.extend({
}
// deselect any selected card because the cursor is no longer on a card
if (this._selectedCard) {
if (this._selectedCard && !editor.range.isBlank) {
this.deselectCard(this._selectedCard);
}