mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
🐛 Fixed tag/author removal in post settings removing multiple tags/authors
closes https://github.com/TryGhost/Ghost/issues/9575
- in 6a3cfc2ca8
an `onmouseover` event handler was added for the close button in token input options which resulted in double firing in some circumstances where our code fired then the ember-power-select removal event handler also fired
This commit is contained in:
parent
f11cb2e491
commit
5de0ae5cea
2 changed files with 5 additions and 4 deletions
|
@ -12,10 +12,12 @@ export default EmberPowerSelectMultipleTrigger.extend({
|
|||
},
|
||||
|
||||
handleOptionMouseDown(event) {
|
||||
if (!event.target.closest('[data-selected-index]')) {
|
||||
let action = this.get('extra.optionMouseDown');
|
||||
if (action) {
|
||||
return action(event);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
handleOptionTouchStart(event) {
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
aria-label="remove element"
|
||||
class="ember-power-select-multiple-remove-btn"
|
||||
data-selected-index={{idx}}
|
||||
onmousedown={{action "chooseOption" opt}}
|
||||
>
|
||||
{{svg-jar "close" data-selected-index=idx}}
|
||||
</span>
|
||||
|
|
Loading…
Add table
Reference in a new issue