From 1817b29a50fdfb32da1e0e81e9fbf90842cacb0e Mon Sep 17 00:00:00 2001 From: long-blade Date: Thu, 25 May 2023 15:49:28 +0300 Subject: [PATCH] feat: add ability to choose if the placeholder of a select element is disabled, default is not --- resources/views/bootstrap-4/form-select.blade.php | 6 ++++-- resources/views/bootstrap-5/form-select.blade.php | 4 +++- resources/views/tailwind-2/form-select.blade.php | 6 ++++-- resources/views/tailwind-forms-simple/form-select.blade.php | 6 ++++-- resources/views/tailwind/form-select.blade.php | 6 ++++-- 5 files changed, 19 insertions(+), 9 deletions(-) diff --git a/resources/views/bootstrap-4/form-select.blade.php b/resources/views/bootstrap-4/form-select.blade.php index 57206e1..c579e87 100644 --- a/resources/views/bootstrap-4/form-select.blade.php +++ b/resources/views/bootstrap-4/form-select.blade.php @@ -1,3 +1,5 @@ +@props(['disablePlaceholder' => false]) +
@@ -23,7 +25,7 @@ {!! $attributes->merge(['class' => 'form-control ' . ($hasError($name) ? 'is-invalid' : '')]) !!}> @if($placeholder) - @endif @@ -42,4 +44,4 @@ @if($hasErrorAndShow($name)) @endif -
\ No newline at end of file + diff --git a/resources/views/bootstrap-5/form-select.blade.php b/resources/views/bootstrap-5/form-select.blade.php index 4c51724..87ffcae 100644 --- a/resources/views/bootstrap-5/form-select.blade.php +++ b/resources/views/bootstrap-5/form-select.blade.php @@ -1,3 +1,5 @@ +@props(['disablePlaceholder' => false]) + @if($floating)
@endif @if(!$floating) @@ -27,7 +29,7 @@ > @if($placeholder) - @endif diff --git a/resources/views/tailwind-2/form-select.blade.php b/resources/views/tailwind-2/form-select.blade.php index 74f63e3..0791ead 100644 --- a/resources/views/tailwind-2/form-select.blade.php +++ b/resources/views/tailwind-2/form-select.blade.php @@ -1,3 +1,5 @@ +@props(['disablePlaceholder' => false]) +
\ No newline at end of file +
diff --git a/resources/views/tailwind-forms-simple/form-select.blade.php b/resources/views/tailwind-forms-simple/form-select.blade.php index 7dff3de..9a0a267 100644 --- a/resources/views/tailwind-forms-simple/form-select.blade.php +++ b/resources/views/tailwind-forms-simple/form-select.blade.php @@ -1,3 +1,5 @@ +@props(['disablePlaceholder' => false]) +
\ No newline at end of file + diff --git a/resources/views/tailwind/form-select.blade.php b/resources/views/tailwind/form-select.blade.php index 91e3ad9..94697d4 100644 --- a/resources/views/tailwind/form-select.blade.php +++ b/resources/views/tailwind/form-select.blade.php @@ -1,3 +1,5 @@ +@props(['disablePlaceholder' => false]) +
\ No newline at end of file +