palantir/blueprint
[MultistepDialog] Navigation to later steps is allowed via side navigation when `nextButtonProps` disallows it
开放
#4,871 创建于 2021年8月20日
P2Package: coreType: bughelp wanted
仓库指标
- 星标
- (20,263 个星标)
- PR 合并指标
- (平均合并 43天 10小时) (30 天内合并 27 个 PR)
描述
Environment
- Package version(s): @blueprintjs/core@3.48.0
Code Sandbox
https://codesandbox.io/s/blueprint-sandbox-multistepdialog-4di0d
Steps to reproduce
(Using the example in the Code Sandbox)
- Advance through each step of the
<MultistepDialog>to the end. - See how each step must be "valid" before you can progress.
- Before submitting, go back to an earlier step via the "Back" buttons or via the side navigation.
- Uncheck the checkbox to make the step invalid.
- ✅ See that the "Next" button on the step is now disabled (according to
nextButtonPropson that step) - ❌ See that you can still navigate to the next step via the side navigation, as it was previously visited.
Actual behavior

Expected behavior

If the "Next" button of the current <DialogStep> is disabled through the nextButtonProps, I do not expect to be able to navigate further forwards through the steps via the side navigation; even if I have advanced further previously.