Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onMouseLeave on the Calendar can deselect selections #194

Open
megasmack opened this issue May 23, 2023 · 0 comments · May be fixed by #195
Open

onMouseLeave on the Calendar can deselect selections #194

megasmack opened this issue May 23, 2023 · 0 comments · May be fixed by #195

Comments

@megasmack
Copy link

Describe the bug
When you're repicking dates and onMouseLeave is run with repick: true and autoApply: false, your calendar selection will reset.

To Reproduce
Steps to reproduce the behavior:

  1. Using the following options:
    {
     element: "#checkin",
     css: [
         "https://cdn.jsdelivr.net/npm/@easepick/bundle@1.2.1/dist/index.css"
     ],
     zIndex: 10,
     autoApply: false,
     RangePlugin: {
         elementEnd: "#checkout",
         repick: true
     },
     plugins: [
         "RangePlugin"
     ]
    }
  2. Select a date range and then apply.
  3. Repick a date range without clicking apply.
  4. Mouse out of the calendar and the date selections disappear.

Expected behavior
Mouse out of the calendar should keep date selections if until "apply" is clicked.

@megasmack megasmack linked a pull request May 23, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant