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 7
7
use JsonException ;
8
8
use PHPForge \Html \Helper \CssClass ;
9
9
use PHPForge \Html \Helper \Utils ;
10
- use PHPForge \Html \Input ;
10
+ use PHPForge \Html \Tag ;
11
11
use Yii2 \Extensions \FilePond \Asset \FilePondAsset ;
12
12
use Yii2 \Extensions \FilePond \Asset \FilePondCdnAsset ;
13
13
use Yii ;
@@ -322,19 +322,6 @@ private function renderInputFile(): string
322
322
// input type="file" not supported value attribute.
323
323
unset($ options ['id ' ], $ options ['placeholder ' ], $ options ['value ' ]);
324
324
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 ();
339
326
}
340
327
}
You can’t perform that action at this time.
0 commit comments