feat: add modal prop to force modal interaction; #1085
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Orchestration has been asked to combine the dynamic schedule draft mode with the standard view. The draft pages were built as individual routes using a shared store to pass task changes between them. In combining these pages, we need to warn users their changes will be lost before allowing them to navigate away. Since we're using a shared store and not just a shared form I want to update Blueprints
<NavigationContext />
navigationCheckCallbacks
to support more robust nav checks. I've gotten that working, but since the inner<NavigationPrompt />
fromreact-router-navigation-prompt
passes its own callback when a cancel action happens, routing breaks if a user clicks outside of our modal or closes with thex
icon since the NavigationPrompt inner onCancel callback is never called.Context (branch is WIP):
TLDR: Needed a way to force users to interact with the modal.
Screen.Recording.2024-11-06.at.11.39.31.AM.mov