From 5161b3333ca9da03b2be013e77b820755d7541ee Mon Sep 17 00:00:00 2001 From: Halvor Haugan Date: Tue, 19 Dec 2023 15:12:19 +0100 Subject: [PATCH] See `onCancel` for more info. --- @navikt/core/react/src/modal/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/@navikt/core/react/src/modal/types.ts b/@navikt/core/react/src/modal/types.ts index 251d62d6e8..d2bb415f22 100644 --- a/@navikt/core/react/src/modal/types.ts +++ b/@navikt/core/react/src/modal/types.ts @@ -36,7 +36,7 @@ export interface ModalProps /** * Called when the user tries to close the modal by one of the built-in methods. * Used if you want to ask the user for confirmation before closing. - * @warning Will not always be called when pressing Esc. Refer to the JSDoc for `onCancel` for more info. + * @warning Will not always be called when pressing Esc. See `onCancel` for more info. * @returns Whether to close the modal */ onBeforeClose?: () => boolean | void;