Skip to content

Commit

Permalink
See onCancel for more info.
Browse files Browse the repository at this point in the history
  • Loading branch information
HalvorHaugan committed Dec 19, 2023
1 parent 0460cd2 commit 5161b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion @navikt/core/react/src/modal/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5161b33

Please sign in to comment.