We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2912900 commit 7c72955Copy full SHA for 7c72955
1 file changed
select2.js
@@ -2133,7 +2133,11 @@ the specific language governing permissions and limitations under the Apache Lic
2133
2134
// and highlight it
2135
if (noHighlightUpdate !== false) {
2136
- this.highlight(selected);
+ if (initial === true && selected >= 0) {
2137
+ this.highlight(selected);
2138
+ } else {
2139
+ this.highlight(0);
2140
+ }
2141
}
2142
2143
// hide the search box if this is the first we got the results and there are enough of them for search
0 commit comments