Skip to content

[Bug]: $set() does not update the picker date #133

@se1exin

Description

@se1exin

What happened?

When using reactivity in a filament form, if I try to change the date of the Flatpickr using $set('date'), nothing happens.

How to reproduce the bug

Create a form with 2 inputs, have one of them update the Flatpickr instance when it changes using afterStateUpdated.

// ...Example filament form schema
[
  TextInput::make('date_str')
      ->live()
      ->afterStateUpdated(function (Get $get, Set $set) {
         $dateStr = $get('date_str');  // I have entered 2026-01-16
         $set('date', $dateStr);
      }),
   Flatpickr::make('date')
]

Note: This will work when using the built-in DatePicker component.

Package Version

5.0.0

PHP Version

8.4.15

Laravel Version

12.46.0

Which operating systems does with happen with?

Linux

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions