We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"use client"; import { useState } from "react"; import DatePicker, { DateObject } from "react-multi-date-picker"; import DatePanel from "react-multi-date-picker/plugins/date_panel";
const DashboardOp = () => { const [value, setValue] = useState( [5, 10, 15, 20, 25, 30, 31].map((day) => new DateObject().setDay(day).setMonth(10), ), );
return ( <DatePicker value={value} onChange={setValue} multiple plugins={[]} /> ); };
export default DashboardOp;
In the above code , when i give 31 in the array of values, Day 31 is not selected instead Day1 is selected. Please advise on this.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
"use client";
import { useState } from "react";
import DatePicker, { DateObject } from "react-multi-date-picker";
import DatePanel from "react-multi-date-picker/plugins/date_panel";
const DashboardOp = () => {
const [value, setValue] = useState(
[5, 10, 15, 20, 25, 30, 31].map((day) =>
new DateObject().setDay(day).setMonth(10),
),
);
return (
<DatePicker
value={value}
onChange={setValue}
multiple
plugins={[]}
/>
);
};
export default DashboardOp;
In the above code , when i give 31 in the array of values, Day 31 is not selected instead Day1 is selected. Please advise on this.
The text was updated successfully, but these errors were encountered: