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

Commit 5419d96

Browse files
Textinput: slider number input should never get a clear button
1 parent d7f94ad commit 5419d96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/widgets/forms/textinput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $.widget( "mobile.textinput", $.mobile.widget, {
3434
focusedEl,
3535
clearbtn,
3636
clearBtnText = o.clearSearchButtonText || o.clearBtnText,
37-
clearBtnBlacklist = input.is( "textarea" ),
37+
clearBtnBlacklist = input.is( "textarea, :jqmData(type='range')" ),
3838
inputNeedsClearBtn = !!o.clearBtn && !clearBtnBlacklist;
3939

4040
function toggleClear() {

0 commit comments

Comments
 (0)