Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix invalid feedback visibility of checkboxes and radios for Bootstrap 4
E.g. with Laravel: @php $validator = Validator::make(request()->all(), [ 'failed_checkbox' => 'required', 'failed_radio' => 'required', 'failed_inline_checkbox' => 'required', 'failed_inline_radio' => 'required', 'failed_checkboxes' => 'required', 'failed_inline_checkboxes' => 'required', ]); $validator->fails(); Former::withErrors($validator); @endphp {!! Former::open()->method('GET') !!} {!! Former::checkbox('failed_checkbox')->text('Failed checkbox') !!} {!! Former::radio('failed_radio')->text('Failed radio') !!} {!! Former::checkbox('failed_inline_checkbox')->text('Failed inline checkbox')->inline() !!} {!! Former::radio('failed_inline_radio')->text('Failed inline radio')->inline() !!} {!! Former::checkboxes('failed_checkboxes')->checkboxes('first', 'second', 'third', 'fourth') !!} {!! Former::checkboxes('failed_inline_checkboxes')->checkboxes('first', 'second', 'third', 'fourth')->inline() !!} {!! Former::close() !!} Reference: formers#581 (comment)
- Loading branch information