Skip to content

[Bug]: Dynamic changing of the minDate and maxDate not working #96

Description

@joey01245

What happened?

I cannot change my minDate or maxDate based on another field

How to reproduce the bug

When using this the minDate of end_date wont be updated.

Flatpickr::make('start_date')
  ->live(),

Flatpickr::make('end_date')
  ->minDate(fn ($state, Get $get) => $get('start_date')),

Package Version

4.0.1

PHP Version

8.2

Laravel Version

11.9

Which operating systems does with happen with?

No response

Notes

The minDate function is triggered when i change my start_date but the datepicker is not re-rendered, thats why the minDate is not applied to the front-end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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