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

Remove disabled prop #392

Closed
wants to merge 1 commit into from
Closed

Conversation

MartijnCuppens
Copy link

I started learning Laravel lately, so I had a look at you guys made the blade components. I noticed disabled was an explicit prop, while others like required or autofocus are not. I think this can be removed, unless there is some other magic going on I'm not aware of yet.

@TENIOS
Copy link
Contributor

TENIOS commented Jul 10, 2024

Please tell me why the use of Blade {!! !!} statements instead of {{ }} like in all other components?

<input {{ $disabled ? 'disabled' : '' }} {!! $attributes->merge(['class' => 'border-gray-300 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 focus:border-indigo-500 dark:focus:border-indigo-600 focus:ring-indigo-500 dark:focus:ring-indigo-600 rounded-md shadow-sm']) !!}>

Thanks in advance for reply.

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

Successfully merging this pull request may close these issues.

None yet

3 participants