react-date-range
react-date-range copied to clipboard
TypeError: disabledDates.some is not a function
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
Please provide the sample code for replicating the error. Which component did you use and what were the props.