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

Commit c62f48b

Browse files
author
Gabriel Schulhof
committed
[checkboxradio] Turn off icon if part of a horizontal controlgroup
1 parent f760adf commit c62f48b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/widgets/forms/checkboxradio.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
3737
activeBtn = icon ? "" : " " + $.mobile.activeBtnClass,
3838
checkedClass = "ui-" + checkedState + activeBtn,
3939
uncheckedClass = "ui-" + uncheckedState,
40-
checkedicon = checkedState,
41-
uncheckedicon = uncheckedState;
40+
checkedicon = icon ? checkedState : undefined,
41+
uncheckedicon = icon ? uncheckedState : undefined;
4242

4343
if ( inputtype !== "checkbox" && inputtype !== "radio" ) {
4444
return;

0 commit comments

Comments
 (0)