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
Takashi
Takashi2w ago
I think we can solve it easily by adding withoutClearButton function to DatePicker object
Want results from more Discord servers?
Add your server