File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed
Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change 77use JsonException ;
88use PHPForge \Html \Helper \CssClass ;
99use PHPForge \Html \Helper \Utils ;
10- use PHPForge \Html \Input ;
10+ use PHPForge \Html \Tag ;
1111use Yii2 \Extensions \FilePond \Asset \FilePondAsset ;
1212use Yii2 \Extensions \FilePond \Asset \FilePondCdnAsset ;
1313use Yii ;
@@ -322,19 +322,6 @@ private function renderInputFile(): string
322322 // input type="file" not supported value attribute.
323323 unset($ options ['id ' ], $ options ['placeholder ' ], $ options ['value ' ]);
324324
325- return match ($ this ->hasModel ()) {
326- true => Input::widget ()
327- ->attributes ($ options )
328- ->id ($ this ->id )
329- ->name ($ name )
330- ->type ('file ' )
331- ->render (),
332- default => Input::widget ()
333- ->attributes ($ options )
334- ->id ($ this ->id )
335- ->name ($ name )
336- ->type ('file ' )
337- ->render (),
338- };
325+ return Tag::widget ()->attributes ($ options )->id ($ this ->id )->name ($ name )->tagName ('input ' )->type ('file ' )->render ();
339326 }
340327}
You can’t perform that action at this time.
0 commit comments