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

Commit 42b8be4

Browse files
author
Gabriel Schulhof
committed
Custom select: Update placeholder during _buildList(). Fixes #5275.
1 parent a6763f3 commit 42b8be4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/widgets/forms/select.custom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ define( [
473473
if ( o.hidePlaceholderMenuItems ) {
474474
classes.push( "ui-selectmenu-placeholder" );
475475
}
476-
if (!placeholder) {
476+
if ( placeholder !== text ) {
477477
placeholder = self.placeholder = text;
478478
}
479479
}

0 commit comments

Comments
 (0)