Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion stubs/resources/views/flux/input/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

@php

$inputAttributes = Flux::attributesAfter('input:', $attributes, []);

// There are a few loading scenarios that this covers:
// If `:loading="false"` then never show loading.
// If `:loading="true"` then always show loading.
Expand Down Expand Up @@ -141,7 +143,7 @@
<input
type="{{ $type }}"
{{-- Leave file inputs unstyled... --}}
{{ $attributes->except('class')->class($type === 'file' ? '' : $classes) }}
{{ $attributes->except('class')->class($type === 'file' ? '' : $classes)->merge($inputAttributes->getAttributes()) }}
<?php if (isset($name)): ?> name="{{ $name }}" <?php endif; ?>
<?php if ($maskDynamic): ?> x-mask:dynamic="{{ $maskDynamic }}" @elseif ($mask) x-mask="{{ $mask }}" <?php endif; ?>
<?php if (is_numeric($size)): ?> size="{{ $size }}" <?php endif; ?>
Expand Down