I have a filter component:
export const PostsFilter = (props) => (
<Filter {...props}>
<TextInput label='Post ID' source='id' alwaysOn />
<TextInput label='User ID' source='user_id' alwaysOn />
</Filter>
);
I need to add a reset button that will clear input values. I understand that in should be done via dispatching smth to redux. So maybe somebody already solved this problem? Thanks!
this.props.reset()
orthis.props.initialize({})
in action of button reset – Cradlesongreact-admin
usesredux-form
under the hood, so it's also the correct direction to investigate – Downcome