From a13f81f7728219895474da6301ad18476a84fa09 Mon Sep 17 00:00:00 2001 From: Harmandeep Date: Fri, 22 Aug 2025 15:44:52 +0530 Subject: [PATCH] Modal class is replaced with ModalComponent class to correct the documentation. --- packages/actions/docs/02-modals.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/actions/docs/02-modals.md b/packages/actions/docs/02-modals.md index 9736f6c7a2..be04d1c82e 100644 --- a/packages/actions/docs/02-modals.md +++ b/packages/actions/docs/02-modals.md @@ -671,7 +671,7 @@ Action::make('updateAuthor') The `closeModalByClickingAway()` method also accepts a function to dynamically calculate the value. You can inject various utilities into the function as parameters. -If you'd like to change the behavior for all modals in the application, you can do so by calling `Modal::closedByClickingAway()` inside a service provider or middleware: +If you'd like to change the behavior for all modals in the application, you can do so by calling `ModalComponent::closedByClickingAway()` inside a service provider or middleware: ```php use Filament\Support\View\Components\ModalComponent; @@ -698,7 +698,7 @@ Action::make('updateAuthor') The `closeModalByEscaping()` method also accepts a function to dynamically calculate the value. You can inject various utilities into the function as parameters. -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: +If you'd like to change the behavior for all modals in the application, you can do so by calling `ModalComponent::closedByEscaping()` inside a service provider or middleware: ```php use Filament\Support\View\Components\ModalComponent; @@ -725,7 +725,7 @@ Action::make('updateAuthor') The `modalCloseButton()` method also accepts a function to dynamically calculate the value. You can inject various utilities into the function as parameters. -If you'd like to hide the close button for all modals in the application, you can do so by calling `Modal::closeButton(false)` inside a service provider or middleware: +If you'd like to hide the close button for all modals in the application, you can do so by calling `ModalComponent::closeButton(false)` inside a service provider or middleware: ```php use Filament\Support\View\Components\ModalComponent; @@ -752,7 +752,7 @@ Action::make('updateAuthor') The `modalAutofocus()` method also accepts a function to dynamically calculate the value. You can inject various utilities into the function as parameters. -If you'd like to disable autofocus for all modals in the application, you can do so by calling `Modal::autofocus(false)` inside a service provider or middleware: +If you'd like to disable autofocus for all modals in the application, you can do so by calling `ModalComponent::autofocus(false)` inside a service provider or middleware: ```php use Filament\Support\View\Components\ModalComponent;