r/purescript • u/HateUsernamesMore • Jul 29 '19
Halogen Actively Sync State with Attribute Value
I am trying to actively sync the state of an input element's value to a field in the component's state so that it can be queried.
How is this usually done?
2
Upvotes
View all comments
Show parent comment
1
u/HateUsernamesMore Jul 30 '19
Just trying that. It seems like onValueInput only triggers on de-focus and a value change.
I'm looking for something like onKeyDown that gives all the input characters and not just the last keyed character.