Skip to content

Commit aedcc10

Browse files
committed
Fix focus issue on multi-value select
Inside the multi-value select box, when you hit backspace next to the choice, it gets the `select2-search-choice-focus` class, but that class is not being removed when select box loses the focus.
1 parent c951b72 commit aedcc10

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
@@ -2194,6 +2194,7 @@ the specific language governing permissions and limitations under the Apache Lic
21942194
this.search.bind("blur", this.bind(function(e) {
21952195
this.container.removeClass("select2-container-active");
21962196
this.search.removeClass("select2-focused");
2197+
this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");
21972198
if (!this.opened()) this.clearSearch();
21982199
e.stopImmediatePropagation();
21992200
}));

0 commit comments

Comments
 (0)