Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix bind value bug
If bound the value would incorrectly be #000000
  • Loading branch information
Dion Potkamp committed Jun 23, 2021
commit 5fc116f8472c5783e0b4e144230764bdbe46a774
2 changes: 1 addition & 1 deletion resources/views/bootstrap-5/form-input.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
wire:model{!! $wireModifier() !!}="{{ $name }}"
@else
name="{{ $name }}"
value="{{ $value ?? $type === 'color' ? '#000000' : '' }}"
value="{{ $value ?? ($type === 'color' ? '#000000' : '') }}"
@endif

@if($label && !$attributes->get('id'))
Expand Down