In our app’s annual review, we’ve been working through our revisions, and we’re stuck on one involving the CSB.
During this retest, I did find an issue with the Contextual Save Bar (CSB). Please see this screenshot for details.
The Save Bar correctly blocks app navigation and nav menu clicks when unsaved changes exist, but fails to block breadcrumb navigation, violating BFS requirement 4.1.5.
Is this a known issue? What am I missing here?
What’s the recommended approach for BFS compliance?
1 Like
Looks like the leaveConfirmation method gives us a fix.
We can add this as the first line in our breadcrumb handler:
await shopify.saveBar.leaveConfirmation()
And that will:
- NOT show any sort of confirmation, (despite the name of the method)
await will basically hang forever if the save bar is present
- which will prevent navigation
Hopefully that works.
2 Likes
You are a beauty @KurtElster - thanks for sharing this! Came up on a BFS review as well and was like hold on, this is Shopify’s own doing lol.
1 Like