for example: ```ruby class EditItem < HyperComponent ... render { INPUT(etc, placeholder: PLACE_HOLDER, defaultValue: todo.title) } on(:enter) { |evt| todo.update(title: evt.target.value) && save! } on(:blur) { cancel! } ... end ```
Activity
catmando commentedon Jan 15, 2019
closed. for example see hyper-component/spec/client_features/element_spec.rb
it 'will subscribe at the class level'hyper-model: the load transition must not discard what the user typed (…
Merge branch 'fix/issue-72-loading-remount-discards-typing' into 'edge'