Procházet zdrojové kódy

correctly filter out selected options out of elements loaded by infinite scroll. fixes #881

Igor Vaynberg před 12 roky
rodič
revize
debbcfcede
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      select2.js

+ 2 - 1
select2.js

@@ -1317,7 +1317,8 @@ the specific language governing permissions and limitations under the Apache Lic
 
 
                     self.opts.populateResults.call(this, results, data.results, {term: term, page: page, context:context});
-
+                    self.postprocessResults(data);
+                            
                     if (data.more===true) {
                         more.detach().appendTo(results).text(self.opts.formatLoadMore(page+1));
                         window.setTimeout(function() { self.loadMoreIfNeeded(); }, 10);