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:
Kevin Ansfield 2021-11-05 10:47:39 +00:00
parent 8d12c9ba59
commit 3fafc4a48a

View File

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