ssorallen / turbo-react

A JavaScript library that transitions between static HTML pages on navigation; no app server required.
https://turbo-react.herokuapp.com/
Apache License 2.0
274 stars 16 forks source link

Updating form fields #25

Open glennfu opened 8 years ago

glennfu commented 8 years ago

I have a form, and depending on which link I click, form fields are pre-filled with different values. When using turbo-react, the form fields (input[type=text]) don't get updated. Is this just an artifact of how React treats forms or is there a way that turbo-react can also update those values?

ssorallen commented 8 years ago

Can you post some example code? I have an idea of what might be happening.

glennfu commented 8 years ago

Well I tried to setup an example on Codepen but then realized I wasn't sure how to trigger turbo-react using only client side code: http://codepen.io/anon/pen/qOyMeq

Can you suggest what would be the most straightforward way to finish this Pen? Or how else should I do this?