Skip to content

Form: option to prevent url change/reload #3905

Open
@galexrt

Description

@galexrt

Description

An option to prevent navigation when the form has changed would be cool especially with a slot to provide a custom modal to confirm/cancel instead of just using window.confirm().
From my point of view the check could be as simple as if an user had changed any field even if changed back to the previous value (see source 2 for an example of that behavior).

I'm not sure if this is something for Nuxt UI to implement directly, but it feels like a feature to make UI's forms even better. 😄

Sources:

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions