You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use-Case: apart from the existing flags (dirty, touched, ...) i'd like to implement my own custom state highlighted to globally highlight fields based on interaction.
I've tried using a separate highlighted: {} state in the form, but mimicking the tree anywhere else is clumsy. Changing the value of the input is also not ideal (aka from foo: String to foo: {value: String, highlighted: Bool}) since that requires changing the signature of the model, which, more often than not, is based on a database object
Use-Case: apart from the existing flags (dirty, touched, ...) i'd like to implement my own custom state
highlighted
to globally highlight fields based on interaction.I've tried using a separate
highlighted: {}
state in the form, but mimicking the tree anywhere else is clumsy. Changing the value of the input is also not ideal (aka fromfoo: String
tofoo: {value: String, highlighted: Bool}
) since that requires changing the signature of the model, which, more often than not, is based on a database objectIdeally the interaction would be:
and in my component:
but that's not available since the meta props are hand-picked and hardcoded.
TL; DR: what do you think of adding
...state
on line https://github.com/erikras/redux-form/blob/master/src/createFieldProps.js#L68 to enable user defined meta propsThe text was updated successfully, but these errors were encountered: