@syncfusion/ej2-base 21.1.37 → 21.1.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4719,8 +4719,15 @@ function prepend(fromElements, toElement, isEval) {
4719
4719
  */
4720
4720
  function append(fromElements, toElement, isEval) {
4721
4721
  const docFrag = document.createDocumentFragment();
4722
- for (const ele of fromElements) {
4723
- docFrag.appendChild(ele);
4722
+ if (fromElements instanceof NodeList) {
4723
+ while (fromElements.length > 0) {
4724
+ docFrag.appendChild(fromElements[0]);
4725
+ }
4726
+ }
4727
+ else {
4728
+ for (const ele of fromElements) {
4729
+ docFrag.appendChild(ele);
4730
+ }
4724
4731
  }
4725
4732
  toElement.appendChild(docFrag);
4726
4733
  if (isEval) {