Merge pull request #2518 from brkcvn/master

Console errors fixed
This commit is contained in:
Burak Civan 2022-07-06 15:06:09 +03:00 committed by GitHub
commit 530bea3ce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 10 additions and 10 deletions

View File

@ -26,7 +26,7 @@
@if (! $attributes->has('label') && ! empty($label->contents)) @if (! $attributes->has('label') && ! empty($label->contents))
{!! $label ?? '' !!} {!! $label ?? '' !!}
@elseif (! empty($label)) @elseif (! empty($label))
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label> <x-form.label for="{{ $name }}" :required="$required">{!! $label !!}</x-form.label>
@endif @endif
<div @class([ <div @class([

View File

@ -26,7 +26,7 @@
@if (! $attributes->has('label') && ! empty($label->contents)) @if (! $attributes->has('label') && ! empty($label->contents))
{!! $label ?? '' !!} {!! $label ?? '' !!}
@elseif (! empty($label)) @elseif (! empty($label))
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label> <x-form.label for="{{ $name }}" :required="$required">{!! $label !!}</x-form.label>
@endif @endif
<x-form.input.editor <x-form.input.editor

View File

@ -26,7 +26,7 @@
@if (! $attributes->has('label') && ! empty($label->contents)) @if (! $attributes->has('label') && ! empty($label->contents))
{!! $label ?? '' !!} {!! $label ?? '' !!}
@elseif (! empty($label)) @elseif (! empty($label))
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label> <x-form.label for="{{ $name }}" :required="$required">{!! $label !!}</x-form.label>
@endif @endif
<div @class([ <div @class([

View File

@ -26,7 +26,7 @@
@if (! $attributes->has('label') && ! empty($label->contents)) @if (! $attributes->has('label') && ! empty($label->contents))
{!! $label ?? '' !!} {!! $label ?? '' !!}
@elseif (! empty($label)) @elseif (! empty($label))
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label> <x-form.label for="{{ $name }}" :required="$required">{!! $label !!}</x-form.label>
@endif @endif
<div @class([ <div @class([

View File

@ -26,7 +26,7 @@
@if (! $attributes->has('label') && ! empty($label->contents)) @if (! $attributes->has('label') && ! empty($label->contents))
{!! $label ?? '' !!} {!! $label ?? '' !!}
@elseif (! empty($label)) @elseif (! empty($label))
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label> <x-form.label for="{{ $name }}" :required="$required">{!! $label !!}</x-form.label>
@endif @endif
<div @class([ <div @class([

View File

@ -26,7 +26,7 @@
@if (! $attributes->has('label') && ! empty($label->contents)) @if (! $attributes->has('label') && ! empty($label->contents))
{!! $label ?? '' !!} {!! $label ?? '' !!}
@elseif (! empty($label)) @elseif (! empty($label))
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label> <x-form.label for="{{ $name }}" :required="$required">{!! $label !!}</x-form.label>
@endif @endif
<div @class([ <div @class([

View File

@ -26,7 +26,7 @@
@if (! $attributes->has('label') && ! empty($label->contents)) @if (! $attributes->has('label') && ! empty($label->contents))
{!! $label ?? '' !!} {!! $label ?? '' !!}
@elseif (! empty($label)) @elseif (! empty($label))
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label> <x-form.label for="{{ $name }}" :required="$required">{!! $label !!}</x-form.label>
@endif @endif
<div @class([ <div @class([

View File

@ -26,7 +26,7 @@
@if (! $attributes->has('label') && ! empty($label->contents)) @if (! $attributes->has('label') && ! empty($label->contents))
{!! $label ?? '' !!} {!! $label ?? '' !!}
@elseif (! empty($label)) @elseif (! empty($label))
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label> <x-form.label for="{{ $name }}" :required="$required">{!! $label !!}</x-form.label>
@endif @endif
<div @class([ <div @class([

View File

@ -26,7 +26,7 @@
@if (! $attributes->has('label') && ! empty($label->contents)) @if (! $attributes->has('label') && ! empty($label->contents))
{!! $label ?? '' !!} {!! $label ?? '' !!}
@elseif (! empty($label)) @elseif (! empty($label))
<x-form.label for="{{ $name }}" {{ $attributes->merge($custom_attributes) }}>{!! $label !!}</x-form.label> <x-form.label for="{{ $name }}" :required="$required">{!! $label !!}</x-form.label>
@endif @endif
@php @php

View File

@ -1,7 +1,7 @@
<label class="text-black text-sm font-medium" {{ $attributes }}> <label class="text-black text-sm font-medium" {{ $attributes }}>
{!! $slot !!} {!! $slot !!}
@if ($attributes->has('required')) @if ($attributes->has('required') && $attributes->get('required') === true)
<span class="text-red ltr:ml-1 rtl:mr-1">*</span> <span class="text-red ltr:ml-1 rtl:mr-1">*</span>
@endif @endif
</label> </label>