We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f544f9d + 0f8a85b commit d487fc5Copy full SHA for d487fc5
1 file changed
select2.js
@@ -920,6 +920,8 @@ the specific language governing permissions and limitations under the Apache Lic
920
921
results = opts.sortResults(results, container, query);
922
923
+ // collect the created nodes for bulk append
924
+ var nodes = [];
925
for (i = 0, l = results.length; i < l; i = i + 1) {
926
927
result=results[i];
@@ -959,9 +961,11 @@ the specific language governing permissions and limitations under the Apache Lic
959
961
}
960
962
963
node.data("select2-data", result);
- container.append(node);
964
+ nodes.push(node[0]);
965
966
967
+ // bulk append the created nodes
968
+ container.append(nodes);
969
liveRegion.text(opts.formatMatches(results.length));
970
};
971
0 commit comments