mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
🐛 Fixed tag/author removal in post settings removing multiple tags/authors
closes https://github.com/TryGhost/Ghost/issues/9575
- in 38b138d759
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
93f1712036
commit
d380753fd3
2 changed files with 5 additions and 4 deletions
|
@ -12,9 +12,11 @@ export default EmberPowerSelectMultipleTrigger.extend({
|
|||
},
|
||||
|
||||
handleOptionMouseDown(event) {
|
||||
let action = this.get('extra.optionMouseDown');
|
||||
if (action) {
|
||||
return action(event);
|
||||
if (!event.target.closest('[data-selected-index]')) {
|
||||
let action = this.get('extra.optionMouseDown');
|
||||
if (action) {
|
||||
return action(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…
Reference in a new issue