Page-Element has a bug! ---> CHILDREN <--- property

Found error in PAGE —> on → CHILDREN-PROPERTY…

let myChildren = $w("#page1").children; console.log(myChildren);

Result…

This should normly not happen!
Where is the whole OBJECT ???

That works, but not enough!

let firstChild = myChildren[0]; console.log(firstChild);

Please fix that bug! Thanks!

A looping through the results, also ends in an ERROR…

myChildren.forEach(childElement => {
        console.log("Main-Child: ", childElement);
});

Turned out it was a → DATASET ← placed on my page, what causes the issue !!!


When deleting it from the page —> everything works fine again !!!

Predefined stuff !!!:sleepy_face: I should know it better!

No errors, anymore…

The → 3 <— is the length of childrens-object in this case.
The counting of placed elements on the page works well.

console.log(myChildren.length)

4-Elements were placed on the page…

  1. Box
  2. Text
  3. Upload-Button
  4. and a —> DATASET

Whyever a DATASET is also included in the countings, i don’t know!
But if Wix wants to include it inside the counting —> at least the code should not break because of it!!! :enraged_face::enraged_face::enraged_face:

Conclusion —> NEVER USE A DATASET EVER AGAIN → DO ALL BY PURE CODE!