Skip to content

Commit e375142

Browse files
author
Dawn Hammond
committed
Fix focus issue when select-input has placeholder
1 parent 00a019b commit e375142

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

select2.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2637,6 +2637,7 @@ the specific language governing permissions and limitations under the Apache Lic
26372637
.attr('for', this.search.attr('id'));
26382638

26392639
this.search.on("input paste", this.bind(function() {
2640+
if (this.search.attr('placeholder') && !this.search.val()) return;
26402641
if (!this.isInterfaceEnabled()) return;
26412642
if (!this.opened()) {
26422643
this.open();

0 commit comments

Comments
 (0)