Selaa lähdekoodia

Merge pull request #1938 from datapad/data-result-direct-children

Only pick up direct children when retrieving data in 'multiple' mode
Igor Vaynberg 11 vuotta sitten
vanhempi
commit
aa0fb730aa
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -3126,7 +3126,7 @@ the specific language governing permissions and limitations under the Apache Lic
             var self=this, ids, old;
             if (arguments.length === 0) {
                  return this.selection
-                     .find(".select2-search-choice")
+                     .children(".select2-search-choice")
                      .map(function() { return $(this).data("select2-data"); })
                      .get();
             } else {