By default Select2 displays blank value option if it has text to display but this is removed in select2/js/Drupal.select2.js line 487

This actually changes the default behaviour of select dropdown and creates confusion for some.

It should be optional and in my opinion based on allowClear setting, if I use this feature it makes sense to hide it from dropdown else let the option be displayed.

CommentFileSizeAuthor
#2 2747725-2.patch799 bytesnikunjkotecha

Comments

nikunjkotecha created an issue. See original summary.

nikunjkotecha’s picture

Status: Active » Needs review
StatusFileSize
new799 bytes

  • oushen committed fd87870 on 7.x-1.x
    Issue #2747725 by nikunjkotecha: Default behaviour of Select2 modified
    
oushen’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.