Skip to content

Commit

Permalink
Merge pull request #25 from wpmudev/enhance/FOR-2555
Browse files Browse the repository at this point in the history
fix(forms): Select fields show an unwanted search bar.
  • Loading branch information
iamleigh authored Jul 4, 2022
2 parents db682f8 + 27e2b75 commit c2153db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/js/select2.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

var $dir,
$language = 'en',
$placeholder = null,
$placeholder = 'Search',
$hasSearch = -1
;

Expand All @@ -49,7 +49,7 @@
if ( '' !== $select.data( 'placeholder' ) ) {
$placeholder = $select.data( 'placeholder' );
} else {
$placeholder = null;
$placeholder = 'Search';
}

if ( '' !== $select.data( 'language' ) ) {
Expand Down

0 comments on commit c2153db

Please sign in to comment.