mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
Fixed {{movable}}
stopping text input selection and allowing drag of dropdown elems
no issue - stops drag from being initiated from any element that matches `input` or `.ember-basic-dropdown-trigger` so that text can still be selected from inputs whilst dragging and we don't get left with orphaned dropdowns from dragging a dropdown-inducing element
This commit is contained in:
parent
8d12c9ba59
commit
3fafc4a48a
@ -62,6 +62,10 @@ export default class MovableModifier extends Modifier {
|
||||
}
|
||||
|
||||
for (const elem of (e.path || e.composedPath())) {
|
||||
if (elem.matches('input, .ember-basic-dropdown-trigger')) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (elem === this.element) {
|
||||
this.addActiveEventListeners();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user