-
-
Notifications
You must be signed in to change notification settings - Fork 727
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
DayPicker modifiers not working with CSS Modules #558
Comments
Are you using DayPicker or DayPickerInput? |
DayPicker |
The modifiers are the class names you import from the css module, so import styles from './MyCSSModule.css';
// ...
handleDayClick(day, modifiers) {
console.log(modifiers[styles.disabled]);
} |
If it works for you please close this issue, thanks! |
@gpbl Thanks! It would be nice to add a small paragraph with this case to the docs. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there, seems like modifiers not working when a CSS Modules enabled.
It grabs all the styles properly but modifiers functionality don't work.
An issue only with
classNames={styles}
prop.Tested with default disabled and selected modifiers from example.
console.log
insidehandleDayClick = (day, {selected, disabled})
getsselected
anddisabled
alwaysundefined
with a CSS modules.Possible related to #504.
The text was updated successfully, but these errors were encountered: