mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 02:41:50 +03:00
1133370568
refs https://github.com/TryGhost/Ghost/issues/9623 - move click handler registration from `onEnterEdit` to `onSelect` - add guard against deselecting for clicks on the editor canvas - prevents card being deselected when the click would have placed the cursor in a position that selected the card - requires editor instance to be passed through to `{{koenig-card}}` in all card components
12 lines
264 B
Handlebars
12 lines
264 B
Handlebars
{{#koenig-card
|
|
class="kg-card-hover"
|
|
isSelected=isSelected
|
|
isEditing=isEditing
|
|
selectCard=(action selectCard)
|
|
deselectCard=(action deselectCard)
|
|
editCard=(action editCard)
|
|
hasEditMode=false
|
|
editor=editor
|
|
}}
|
|
<hr>
|
|
{{/koenig-card}} |