Skip to content

Commit e9677d8

Browse files
committed
- Fixed issue with floating labels on material admin
Signed-off-by: Arushad Ahmed <dash-8x@hotmail.com>
1 parent b77e32f commit e9677d8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

resources/views/material-admin-26/input.blade.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<x-forms::form-group :inline-input-class="$inlineInputClass" :inline-label-class="$inlineLabelClass" :wrap="$showLabel && $type != 'hidden'" :label="$label ?: $label()" :name="$attributes->get('id') ?: $id()" :framework="$framework" :inline="$inline" :required="$required" :floating="$floating">
2+
@if(! $floating)
23
<div class="position-relative">
4+
@endif
35
@if($isDateInput() || (! empty($prepend)) || (! empty($append)))
46
<div class="input-group mb-0">
57
@if($isDateInput() || (! empty($prepend)))
@@ -56,7 +58,9 @@
5658
@endif
5759
</div>
5860
@endif
61+
@if(! $floating)
5962
</div>
63+
@endif
6064

6165
@if(! empty($help))
6266
<x-forms::input-help :framework="$framework" :attributes="$help->attributes">

resources/views/material-admin-26/textarea.blade.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<x-forms::form-group :inline-input-class="$inlineInputClass" :inline-label-class="$inlineLabelClass" :wrap="$showLabel && $type != 'hidden'" :label="$label ?: $label()" :name="$attributes->get('id') ?: $id()" :framework="$framework" :inline="$inline" :required="$required" :floating="$floating">
2+
@if(! $floating)
23
<div class="position-relative">
4+
@endif
35
<textarea
46
{!! $attributes->merge([
57
'class' => 'form-control' . ($hasError($name) ? ' is-invalid' : '') . ($wysiwyg ? ' wysiwyg' : ''),
@@ -21,7 +23,9 @@
2123
@endif
2224
>{!! $value !!}</textarea>
2325
<i class="form-group__bar"></i>
26+
@if(! $floating)
2427
</div>
28+
@endif
2529

2630
@if(! empty($help))
2731
<x-forms::input-help :framework="$framework">

0 commit comments

Comments
 (0)