MCPcopy
hub / github.com/bevacqua/dragula / isInput

Function isInput

dragula.js:567–567  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

565function getRectHeight (rect) { return rect.height || (rect.bottom - rect.top); }
566function getParent (el) { return el.parentNode === doc ? null : el.parentNode; }
567function isInput (el) { return el.tagName === 'INPUT' || el.tagName === 'TEXTAREA' || el.tagName === 'SELECT' || isEditable(el); }
568function isEditable (el) {
569 if (!el) { return false; } // no parents were editable
570 if (el.contentEditable === 'false') { return false; } // stop the lookup

Callers 2

grabFunction · 0.85
startBecauseMouseMovedFunction · 0.85

Calls 1

isEditableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…