尝试向 <TabbedForm> 的 <Toolbar> 添加下一个按钮以滚动选项卡
Trying to add a next button to <Toolbar> of <TabbedForm> to scroll through tabs
我想在我的 TabbedForm 工具栏中添加一个下一步按钮。
我已经知道如何正确滚动了,但是当我返回时我的输入数据被删除了。我认为这与我如何将按钮设置为 redux link 组件有关。
<Button
submitOnEnter={false}
variant="outlined"
component={Link} to={`/post/create/${index}`}
>
Next
</Button>
这样试试:
to={{ pathname: `/post/create/${index}`, state: { skipFormReset: true } }}
我想在我的 TabbedForm 工具栏中添加一个下一步按钮。
我已经知道如何正确滚动了,但是当我返回时我的输入数据被删除了。我认为这与我如何将按钮设置为 redux link 组件有关。
<Button
submitOnEnter={false}
variant="outlined"
component={Link} to={`/post/create/${index}`}
>
Next
</Button>
这样试试:
to={{ pathname: `/post/create/${index}`, state: { skipFormReset: true } }}