{{-- This doesn't seem to fix it, neither does a div? --}}
{{-- wire:ignore is because Select 2 mangles the dom in many awful ways, and so does iCheckbox --}}
{{ Form::select('custom_fieldset', Helper::customFieldsetList(), old('custom_fieldset', $fieldset_id), array('class'=>'select2 js-fieldset-field', 'style'=>'width:350px', 'aria-label'=>'custom_fieldset', 'wire:model' => 'fieldset_id', 'id' => 'glooobits')) }} {{-- when we have this wrapped in 'ignore', the wire:model won't work --}} {!! $errors->first('custom_fieldset', '') !!}
@if( $this->add_default_values ) {{-- 'if the checkbox is enabled *AND* there are more than 0 fields in the fieldsset' --}}
@foreach ($fields as $field)
@if ($field->element == "text") @elseif($field->element == "textarea")
@elseif($field->element == "listbox") @elseif($field->element == "radio") @foreach(explode("\r\n", $field->field_values) as $field_value) defaultValue($model_id) == $field_value ? 'checked="checked"': '' }} />{{ $field_value }}
@endforeach @elseif($field->element == "checkbox") defaultValue($model_id) ? 'checked="checked"': '' }}/> @else Unknown field element: {{ $field->element }} @endif
@endforeach
@endif @push('js') @endpush