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

Commit a1abaf8

Browse files
author
Gabriel Schulhof
committed
Custom select: Update placeholder during _buildList(). Fixes #5275.
1 parent 3e3ad68 commit a1abaf8

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
@@ -480,7 +480,7 @@ define( [
480480
if ( o.hidePlaceholderMenuItems ) {
481481
classes.push( "ui-selectmenu-placeholder" );
482482
}
483-
if (!placeholder) {
483+
if ( placeholder !== text ) {
484484
placeholder = self.placeholder = text;
485485
}
486486
}

0 commit comments

Comments
 (0)