We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Even though the model value is === 0, it is not pre-selecting the radio when:
{!! Form::open()->fill($model !!} {!! Form::radio('has_tickets', 'No', 0) !!}
<?= $model->has_tickets === 0 ? 'true' : 'false' ?>
Returns 'true';
The text was updated successfully, but these errors were encountered:
The issue is caused by type hinting the $value argument as a string in the checkbox and radio methods:
$value
string
laravel-bootstrap-4-forms/src/FormService.php
Line 440 in a90c5ad
Can I ask why? Why not just let the developer pass through their own raw variable. So number can be with or without quotes?
Sorry, something went wrong.
No branches or pull requests
Even though the model value is === 0, it is not pre-selecting the radio when:
<?= $model->has_tickets === 0 ? 'true' : 'false' ?>
Returns 'true';
The text was updated successfully, but these errors were encountered: