Skip to content

Commit 6bd20a4

Browse files
committed
fix: create info button
1 parent f8d867c commit 6bd20a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

resources/views/backend/info/createInfo.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
<input type="hidden" name="old_title">
3535

3636
<div class="mt-1">
37-
<x-form.ck-editor id="desc" class="form-control" name="description" id="description" placeholder="Description" required></x-form.ck-editor>
37+
<x-form.ck-editor name="description" placeholder="Description" required></x-form.ck-editor>
3838
</div>
3939

4040

4141

42-
<x-backend.ui.button class="btn-primary mt-2">Create</x-backend.ui.button>
42+
<x-backend.ui.button class="btn-primary mt-2" type="submit">Create</x-backend.ui.button>
4343

4444
</div>
4545
</div>

resources/views/components/form/ck-editor.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<span class="text-danger">*</span>
3232
@endif
3333
</label>
34-
<textarea {{ $attributes->merge(['value' => $slot->toHtml(), 'id' => $id]) }}>{!! $slot !!}</textarea>
34+
<textarea {{ $attributes->except('required')->merge(['id' => $id]) }}>{!! $slot !!}</textarea>
3535
@error($name)
3636
<span class="text-danger">{{ $message }}</span>
3737
@enderror

0 commit comments

Comments
 (0)