@props([ 'name' => '', 'element' => 'text', 'format' => 'ANY', 'helpText' => '', 'fieldValues' => '', ]) @php $displayName = trim((string) $name) !== '' ? $name : trans('admin/custom_fields/general.field_name'); $valuesArray = array_values(array_filter(array_map('trim', preg_split('/\r?\n/', (string) $fieldValues)), fn ($v) => $v !== '')); $formatIcon = \App\Models\CustomField::iconForFormat($format); @endphp {{-- aria-hidden hides the preview from assistive tech (it's a visual representation, not a real form field). Interactive widgets — date pickers and select2 listboxes — need pointer events and focus to open their popups, so pointer-events is applied per-element instead of on the wrapper. onkeydown blocks Enter from triggering the outer Livewire form's wire:submit while still allowing typing into the interactive widgets themselves (select2 search, picker input). --}}