Contextual Save Bar shake with Web Components ui-save-bar

For BFS, I’m required to re-focus or shake the Contextual Save Bar ui-save-bar if there are unsaved changes on the page.

csb-shake

Is there a method for the Web Components ui-save-bar to shake or refocus it?

I don’t see anything in the documentation to achieve this; everything I’ve tried does not work.

You can use shopify.saveBar.leaveConfirmation();

Great thank you, I didn’t really make the connection between the two like that, lost in the sauce

It’s confusing because I use element.show() to launch the csb, but use leaveConfirmation it’s on the shopify object itself

1 Like

Yes you can follow the Save Bar component at app bridge Save Bar

1 Like