Skip to content
New issue

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

Input component should accept null for the value attribute #58

Closed
mvdnbrk opened this issue Sep 8, 2020 · 0 comments · Fixed by #60
Closed

Input component should accept null for the value attribute #58

mvdnbrk opened this issue Sep 8, 2020 · 0 comments · Fixed by #60

Comments

@mvdnbrk
Copy link
Contributor

mvdnbrk commented Sep 8, 2020

Passing null to :value is not possible at the moment, only strings are accepted.

$user->name = null;

<x-input name="name" :value="$user->name ?? ''"/>

Passing a null to the value attribute should be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant