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

<input type="checkbox" checked={ undefined } defaultChecked={ true } />

rosenfeld opened this issue · comments

The checkbox in the title is rendered unchecked in Dio.js and checked in React.

MUICSS creates a wrapper over the checkbox, rendering it like <input type="checkbox" checked={ props.checked } defaultChecked={ props.defaultChecked } />.

Could you please make Dio.js behave like in React?

Can you link to the repro you had for this here.

There wasn't one since it's straightforward to test it, but if you prefer, I just modified the other example I was working on to include a regular input and a checkbox with checked/value assigned to undefined and defaultChecked/defaultValue set to something else. You can see the difference of behavior between Dio.js and React.js:

https://codesandbox.io/s/x9997158pp

[note: I've updated the link in the previous comment] If you're accessing the link directly from the notifications by e-mail, here you are: https://codesandbox.io/s/x9997158pp (CodeSandbox has its own bugs that will prevent me to update the code sometimes)