diff --git a/app/Traits/CustomActionTrait.php b/app/Traits/CustomActionTrait.php index 20dd281..ce91dbb 100644 --- a/app/Traits/CustomActionTrait.php +++ b/app/Traits/CustomActionTrait.php @@ -26,7 +26,7 @@ trait CustomActionTrait case 'drawer': $form = $this->form(false)->api($this->getStorePath())->onEvent([]); - $drawer = Drawer::make()->title(__('admin.create'))->body($form); + $drawer = Drawer::make()->title(__('admin.create'))->body($form)->closeOnOutside(); if($width){ $drawer->width($width); }else{ @@ -68,7 +68,7 @@ trait CustomActionTrait ->redirect('') ->onEvent([]); - $drawer = Drawer::make()->title(__('admin.edit'))->body($form); + $drawer = Drawer::make()->title(__('admin.edit'))->body($form)->closeOnOutside(); if($width){ $drawer->width($width);