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

TypeError: disabledDates.some is not a function #607

Open
iEarlG opened this issue May 7, 2023 · 1 comment
Open

TypeError: disabledDates.some is not a function #607

iEarlG opened this issue May 7, 2023 · 1 comment

Comments

@iEarlG
Copy link

iEarlG commented May 7, 2023

Subject of the issue

When submitting the selected dates, the disabledDates will be recognized by the Application even though the props is correctly passing.

[BUG] Bug Reproduce Steps

If the user select a dates and try submitting the dates it will successfully store on the database but it will give a TypeError: disabledDates.some is not a function and when the other users check the same listing the dates will not be disabled.

SAMPLE VIDEO BELOW the "Reservation Successful" means the listing is already been saved in the database but still crash
https://user-images.githubusercontent.com/91045673/236675668-c69e0fe5-f384-4403-9f42-91758e99a561.mp4

[BUG] Expected behaviour

The selected dates should be disabled and cannot be selected by the users & other users.

Environment

Package Version: 1.4.0
React version: 18.2.0
Next version: 13.3.0
Node version: v20.1.0
Browser: Google Chrome

@umakantp
Copy link

Please provide the sample code for replicating the error. Which component did you use and what were the props.

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

No branches or pull requests

2 participants