dyo / dyo

Dyo is a JavaScript library for building user interfaces.

Home Page:https://dyo.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The functions of Dyo.Children are not working properly

mcjazzyfunky opened this issue · comments

Please compare the console output of the following two demos:

With React (everything working as expected):
https://jsfiddle.net/xf7Lkpom (Edit - fixed: https://jsfiddle.net/hfrvnmjL)

With Dyo (not working as expected):
https://jsfiddle.net/o052hcwk (Edit -fixed: https://jsfiddle.net/Ltqzkue3)

It should be elem.children not elem.props.children, the later is only true for components. However elem.children is not meant to be used. Why whould you use this outside of a components props.children?

Oops, my bad ... I have fixed the above demos:

React:
https://jsfiddle.net/hfrvnmjL/

Dyo:
https://jsfiddle.net/Ltqzkue3/

@thysultan TYVM for that bugfix. I've tested it and it's seems to work fine now.