jqh 4 years ago
parent
commit
051bafab62
1 changed files with 7 additions and 13 deletions
  1. 7 13
      src/Grid/Actions/QuickEdit.php

+ 7 - 13
src/Grid/Actions/QuickEdit.php

@@ -7,8 +7,6 @@ use Dcat\Admin\Grid\RowAction;
 
 class QuickEdit extends RowAction
 {
-    protected static $resolvedWindow;
-
     /**
      * @return array|null|string
      */
@@ -23,19 +21,15 @@ class QuickEdit extends RowAction
 
     public function render()
     {
-        if (! static::$resolvedWindow) {
-            static::$resolvedWindow = true;
-
-            [$width, $height] = $this->parent->option('dialog_form_area');
+        [$width, $height] = $this->parent->option('dialog_form_area');
 
-            $title = trans('admin.edit');
+        $title = trans('admin.edit');
 
-            Form::dialog($title)
-                ->click(".{$this->getElementClass()}")
-                ->dimensions($width, $height)
-                ->forceRefresh()
-                ->success('Dcat.reload()');
-        }
+        Form::dialog($title)
+            ->click(".{$this->getElementClass()}")
+            ->dimensions($width, $height)
+            ->forceRefresh()
+            ->success('Dcat.reload()');
 
         $this->setHtmlAttribute([
             'data-url' => "{$this->resource()}/{$this->getKey()}/edit",