I’m using <ui-title-bar> in my app, and I’ve added a breadcrumb that lets users go back. Here’s the snippet:
<ui-title-bar title={ruleId ? "Edit Google Rule" : "Create Google Rule"}>
<button
variant="breadcrumb"
onClick={() => navigate("/google-products")}
type="button"
>
Google-Products
</button>
</ui-title-bar>
The problem:
- When the
<ui-save-bar>is active (unsaved changes present), clicking the app icon correctly prevents navigation until the user saves or discards. - But if I click the breadcrumb button, I can still navigate back without being blocked — which should not happen.
How can I make the breadcrumb behave the same way as the app icon, so navigation is blocked until the user resolves the <ui-save-bar>?
