jqh 5 년 전
부모
커밋
6e7060dc7d
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  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);
         }