Skip to content

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

Closed

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

  1. coolsam726 commented on Apr 19, 2025

    @coolsam726
    Owner

    Hi @joey01245 ,

    I confirm this is a reactivity issue, especially when passing config attributes from PHP to javascript. I am still looking for a way around this, any ideas are welcome!

  2. coolsam726 commented on Jun 13, 2026

    @coolsam726
    Owner

    Fixed in #144 (and #143 where applicable). Closing manually because the PR did not include Closes #96 keywords for auto-close on merge.

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