palantir/blueprint
Vedi su GitHub[MultistepDialog] Allow side navigation to be disabled (e.g. when submitting)
Open
#4872 aperta il 20 ago 2021
P2Package: coreType: feature requesthelp wanted
Metriche repository
- Star
- (20.263 star)
- Metriche merge PR
- (Merge medio 43g 10h) (27 PR mergiate in 30 g)
Descrizione
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.