bevacqua / dragula

:ok_hand: Drag and drop so simple it hurts
https://bevacqua.github.io/dragula/
MIT License
22.08k stars 1.97k forks source link

Adjust isInput logic #674

Open danny-andrews opened 3 years ago

danny-andrews commented 3 years ago

Allows custom input elements to be detected as inputs.

I'm using a custom input element in a draggable container, and I'm not able to focus it with a mouse because the logic for detecting if an element is an input checks for tag names. I changed to code to use a heuristic instead. Any reasonable input element should have a name and disabled attribute.