We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The backAction is not working correctly with SaveBar. When the back button is used, the SaveBar shakes but does not prevent the navigation occurring.
backAction
SaveBar
When the backAction button is used and the SaveBar is visible, the SaveBar should shake but navigation should be prevented.
When the backAction button is used and the SaveBar is visible, the SaveBar shakes but navigation away from the page still happens.
import { Page } from "@shopify/polaris"; import { SaveBar } from "@shopify/app-bridge-react";
<Page title="Add connection" backAction={{ content: "Connections", url: "/app/connections", }} > <SaveBar id="my-save-bar"> <button variant="primary" onClick={handleSave}></button> <button onClick={handleDiscard}></button> </SaveBar> ... </Page>
shopify.saveBar.show('my-save-bar');
Yes
13.9.0
Chrome
Windows 11 Pro
The text was updated successfully, but these errors were encountered:
This is a duplicate of Shopify/shopify-app-bridge#416
Sorry, something went wrong.
No branches or pull requests
Summary
The
backAction
is not working correctly withSaveBar
. When the back button is used, theSaveBar
shakes but does not prevent the navigation occurring.Expected behavior
When the
backAction
button is used and theSaveBar
is visible, theSaveBar
should shake but navigation should be prevented.Actual behavior
When the
backAction
button is used and theSaveBar
is visible, theSaveBar
shakes but navigation away from the page still happens.Steps to reproduce
backAction
andSaveBar
component:shopify.saveBar.show('my-save-bar');
backAction
to navigate away from the page.Are you using React components?
Yes
Polaris version number
13.9.0
Browser
Chrome
Device
Windows 11 Pro
The text was updated successfully, but these errors were encountered: