TextInputColumn (date) submit too fast

Hi all 👋

I have a resource with an “expiry date” table. To go faster, I wanted to add a TextInputColumn to my table so that I could just change the date without having to go through a modal or an edit page. So I did the following:

Tables\Columns\TextInputColumn::make('expiration_date')
  ->label('Expiration date')
  ->placeholder('-')
  ->type('date')
  ->toggleable()
  ->rules(['nullable', 'date'])
  ->sortable(),


It works, on my table I now have a text field with a calendar available. The problem is that as soon as I start to change a date (if I type a number in the field, for example, or select a day in the calendar) the value is updated directly in the DB, which is a bit annoying because I haven't necessarily finished editing (let's say I want to type day 20, the value is updated as soon as I type 2).

Is there a method I can add to avoid this?
Thanks in advance.
Was this page helpful?