ivaynberg/select2 — pull request #1940 by alekstorm (2013-11-27 23:27:16+00:00)
Title: Fix dropdown items not being reset after filtering and selecting when `closeOnSelect` is `false`

This fixes a bug wherein, when using the standard filtering function and with `closeOnSelect: false`, if the user typed a few characters and hit Enter, the filter would still be applied to the dropdown after selecting the item, even though the text input was blank.