Open TuanAnh0907 opened 8 months ago
On mobile, you can only choose one
@TuanAnh0907
you need to create a custom class in php, set attributes field disableMobile, than create custom controller on JS and view. Will change for you controller name in view all data. ` class DateRangeCustom extends Field implements ComplexFieldConcern { /**
@var string */ protected $view = 'fields.dataRange';
protected $attributes = [ 'disableMobile' => 'true' ];
/**
and than in your view in div add data attribute `<div class="row" data-controller="datetimeCustom" data-datetimeCustom-disable-mobile="{{$disableMobile}}" data-datetimeCustom-allow-input="true" data-datetimeCustom-range="#end_{{ \Illuminate\Support\Str::slug($attributes['name']) }}"
"`
Describe the bug I can't select the time period when using DateRange on my phone but on my PC it works fine https://orchid.software/en/docs/field/#daterange