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.
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
anddisabled
attribute.