palantir/blueprint
GitHub で見る[MultistepDialog] Allow side navigation to be disabled (e.g. when submitting)
Open
#4,872 opened on 2021年8月20日
P2Package: coreType: feature requesthelp wanted
説明
Environment
- Package version(s): @blueprintjs/core@3.48.0
Feature Request
-
Add a
disabledprop to<MultistepDialog>that would allow the side navigation to be disabled (e.g when the dialog is being submitted) -
Perhaps if specified
true(and ignored asfalse | undefined), it could also combine & override any individualdisabledprops for all the other steps'nextButtonPropsandbackButtonProps? (You can see in my Code Sandbox example, I am passing|| submittingthrough to most of them)
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.
- On the last step, click the "Submit" button to trigger a fake submit state.
- ❌ See that you can still navigate around between past steps via the side navigation whilst the form submit is ongoing.