react-date-range
react-date-range copied to clipboard
not show last month days in this month
how can I config to not show the last month in current month when I rendering two month at once thank u very much
I'd also like the next month's date to be selectable when shown.
@missmatsuko You should probably make that a separate issue so this one can be closed.
@mimshwright ok I made issue #144
currently doing this with css selectors because the default style causes dates to look disabled:
& .rdrDayPassive > .rdrDayNumber * {
color: transparent !important;
}
please add this
@mimshwright https://github.com/mimshwright/react-date-range/commit/d2a64dbfe8c9b6483960c1a2b4a194ec4d35563b is this merged ?
@mac-s-g Your solution works WONDERFULLY 💯
"color: transparent" just makes it invisible, but you still can hover it and select. I use this code inside useEffect. Not a react way, but it does the job.
const elements = document.getElementsByClassName("rdrDayPassive")
while (elements.length > 0) {
elements[0].parentNode?.removeChild(elements[0])
}