1
0
Fork 0
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:
Kevin Ansfield 2018-04-23 14:25:59 +01:00
parent 93f1712036
commit d380753fd3
2 changed files with 5 additions and 4 deletions

View file

@ -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);
}
}
},

View file

@ -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>