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

Commit 07ed62a

Browse files
author
Gabriel Schulhof
committed
Controlgroup: Call refresh() when the value of the excludeInvisible option changes. Fixes #6199.
1 parent ec23a71 commit 07ed62a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

js/widgets/controlgroup.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ $.widget( "mobile.controlgroup", $.extend( {
7777

7878
// No need to call refresh if the type hasn't changed
7979
if ( this.options.type !== options.type ) {
80+
this.options.type = options.type;
8081
callRefresh = true;
8182
}
8283
}
@@ -97,6 +98,11 @@ $.widget( "mobile.controlgroup", $.extend( {
9798
this._ui.childWrapper.toggleClass( "ui-shadow", opts.shadow );
9899
}
99100

101+
if ( options.excludeInvisible !== undefined ) {
102+
this.options.excludeInvisible = options.excludeInvisible;
103+
callRefresh = true;
104+
}
105+
100106
if ( internal ) {
101107
this._classes = classes;
102108
} else {

0 commit comments

Comments
 (0)