jqh hace 5 años
padre
commit
6e7060dc7d
Se han modificado 1 ficheros con 2 adiciones y 4 borrados
  1. 2 4
      src/Form/Field.php

+ 2 - 4
src/Form/Field.php

@@ -951,15 +951,13 @@ class Field implements Renderable
     }
 
     /**
-     * Remove the field in modal.
-     *
      * @return $this
      */
-    public function hideInModal()
+    public function hideInDialog()
     {
         if (
             $this->form instanceof Form
-            && $this->form->inModal()
+            && $this->form->inDialog()
         ) {
             $this->display(false);
         }