Skip to content

Custom dialog not shown #40

Description

@piszczu4

I have a code like this:

  const navGuard = useNavigationGuard({
    enabled: isStarted,
  });


  return (
    <>
      <ResponsiveDialog
        open={navGuard.active}
        description={
          'Opuszczenie strony spowoduje utratę dotychczasowego dostępu!'
        }
        footer={{
          cancel: <Button onClick={navGuard.reject}>Anuluj</Button>,
          submit: <Button onClick={navGuard.accept}>Anuluj</Button>,
        }}
      />

but the dialog never shows and always the default browser popup is shown. How to fix that? I want to make a callack to my database before user left the page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions