Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit b2d9570

Browse files
committed
Button: Fix initSelector to only do input[type=button] to exclude button elements with type=button Fixes #6237 - JQM 1.4 alpha button on form has a large border
1 parent 4edab45 commit b2d9570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/widgets/forms/button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ $.widget( "mobile.button", {
115115
}
116116
});
117117

118-
$.mobile.button.initSelector = "[type='button'], [type='submit'], [type='reset']";
118+
$.mobile.button.initSelector = "input[type='button'], [type='submit'], [type='reset']";
119119

120120
//auto self-init widgets
121121
$.mobile._enhancer.add( "mobile.button" );

0 commit comments

Comments
 (0)