Skip to content

Commit

Permalink
Allow to enter data into any search field after dragging
Browse files Browse the repository at this point in the history
Fixes #3269
  • Loading branch information
CarolineDenis committed Mar 29, 2023
1 parent ec0ad44 commit 7ab5dfe
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ export function QueryFields({
distance: 4,
});

sortable.on('sortable:start', (event) => {
const target = event.dragEvent.originalEvent.target as HTMLElement;
if (
['A', 'BUTTON', 'INPUT', 'SELECT', 'TEXTAREA'].includes(target.tagName)
)
event.cancel();
console.log(event);
});

sortable.on('sortable:stop', (event) => {
const newIndex = event.newIndex;
const oldIndex = event.oldIndex;
Expand Down

0 comments on commit 7ab5dfe

Please sign in to comment.