jqh 5 yıl önce
ebeveyn
işleme
6e7060dc7d
1 değiştirilmiş dosya ile 2 ekleme ve 4 silme
  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);
         }