Fix form plugin for input fields.
It turns out input[type=text] will only find input fields where the type attribute is explicitly set to text, but would skip fields that left it out and defaulted to type text. This changes to catch all types of input elements.
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
api = event.detail.api;
|
||||
var gc = api.lib.gc;
|
||||
|
||||
var selectors = [ "input[type=text]", "textarea", "select", "[contenteditable=true]" ];
|
||||
var selectors = [ "input", "textarea", "select", "[contenteditable=true]" ];
|
||||
for ( var selector of selectors ) {
|
||||
var elements = document.querySelectorAll( selector );
|
||||
if ( !elements ) {
|
||||
|
||||
Reference in New Issue
Block a user