inesita-rb / inesita

Frontend web application framework in Ruby using Opal.
https://inesita.fazibear.me/
MIT License
259 stars 15 forks source link

How to specify autofocus attribute? #11

Closed olegantonyan closed 8 years ago

olegantonyan commented 8 years ago

HI! I want to specify autofocus for input. How can I do this? Haml-like style input type: 'text', autofocus: true doesn't work

fazibear commented 8 years ago

try:

input attributes: { autofocus: true }

Here is more informations: https://github.com/Matt-Esch/virtual-dom/blob/master/docs/vnode.md