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:
parent
21007d0630
commit
dcd76b5a5e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue