infernojs / inferno

:fire: An extremely fast, React-like JavaScript library for building modern user interfaces
https://infernojs.org
MIT License
16.04k stars 636 forks source link

Missing proper form element support #149

Closed ghost closed 8 years ago

ghost commented 8 years ago

There is no proper Form element support in the spike branch. It was done through events on master branch. Still not fixed yet for components and updates.

See react or angularjs as reference

trueadm commented 8 years ago

@Kflash can you give an example please?

ghost commented 8 years ago

This is related to components and form elements. I choose to link to two other vdom libraries:

https://github.com/dfilatov/vidom/blob/master/src/createNode.js#L9-L19

https://github.com/localvoid/kivi/blob/master/src/vnode/vnode.js#L143-L153

React solve this in the same way and have done so since version 0.4.

trueadm commented 8 years ago

Let's aim to get this in the 0.6 release too.

ghost commented 8 years ago

@Havunen I think the milestone here is wrong?

ghost commented 8 years ago

@trueadm @havunen this is has been pushed forward all the time. Would be important to get this fixed ASAP. A lot of people uses select, input elements etc

Havunen commented 8 years ago

Added test case for checkboxes I think this issue is related to it as it seems general problem for all inputs

Havunen commented 8 years ago

I think supporting checkboxes, basic select, textarea, text input is crucial. This should be fixed asap