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

Commit beacbac

Browse files
author
Gabriel Schulhof
committed
Select: Do not copy class ui-screen-hidden from the options to the button. After all, if it is the selected option, it cannot be hidden. Fixes #6225 - Filter: Filtering a SELECT element causes unexpected experience
1 parent b5b296f commit beacbac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/widgets/forms/select.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ $.widget( "mobile.selectmenu", $.extend( {
247247
// TODO possibly aggregate multiple select option classes
248248
return span
249249
.addClass( self.select.attr( "class" ) )
250-
.addClass( selected.attr( "class" ) );
250+
.addClass( selected.attr( "class" ) )
251+
.removeClass( "ui-screen-hidden" );
251252
})());
252253
},
253254

0 commit comments

Comments
 (0)