From f00aea607fa4d06ca42a4715f40b60b3a4bf569f Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 31 Jul 2024 13:59:22 +0200 Subject: [PATCH] Use closeModalByEscaping instead of closedByEscaping --- packages/actions/docs/04-modals.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/actions/docs/04-modals.md b/packages/actions/docs/04-modals.md index 7454d62552..f4609d971f 100644 --- a/packages/actions/docs/04-modals.md +++ b/packages/actions/docs/04-modals.md @@ -508,7 +508,7 @@ Modal::closedByClickingAway(false); ## Closing the modal by escaping -By default, when you press escape on a modal, it will close itself. If you wish to disable this behavior for a specific action, you can use the `closedByEscaping(false)` method: +By default, when you press escape on a modal, it will close itself. If you wish to disable this behavior for a specific action, you can use the `closeModalByEscaping(false)` method: ```php Action::make('updateAuthor') @@ -518,7 +518,7 @@ Action::make('updateAuthor') ->action(function (array $data): void { // ... }) - ->closedByEscaping(false) + ->closeModalByEscaping(false) ``` If you'd like to change the behavior for all modals in the application, you can do so by calling `Modal::closedByEscaping()` inside a service provider or middleware: