How to remove or disable clear button on DatePicker

I try required, but it not disable
Tables\Filters\Filter::make('date')
->form([
DatePicker::make('date')
->label('Select Date')
->default(today())
->required()
])
->query(function (Builder $query, array $data): Builder {
return $query;
}),
Tables\Filters\Filter::make('date')
->form([
DatePicker::make('date')
->label('Select Date')
->default(today())
->required()
])
->query(function (Builder $query, array $data): Builder {
return $query;
}),
1 Reply
taka92
taka922mo ago
I think we can solve it easily by adding withoutClearButton function to DatePicker object

Did you find this page helpful?