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
Describe the bug The className prop is omitted from DatePickerProps which breaks compatibility with styled-components
https://github.com/Hacker0x01/react-datepicker/blob/main/src/index.tsx#L119
To Reproduce Steps to reproduce the behavior:
import DatePicker, { DatePickerProps } from 'react-datepicker'; import styled from 'styled-components/macro'; const Input = styled(DatePicker)<{ invalid: boolean; }>` padding-inline-end: 40px; ::placeholder { color: ${({ theme }) => theme.grey60}; font-size: 0.875rem; } background-repeat: no-repeat; background-position: right 8px center; ${({ invalid }) => invalid && 'border-color: #dc3545'} `;
Expected behavior No type error as in v7.3.0
Screenshots
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
same issue in v7.5.0
Sorry, something went wrong.
No branches or pull requests
Describe the bug
The className prop is omitted from DatePickerProps which breaks compatibility with styled-components
https://github.com/Hacker0x01/react-datepicker/blob/main/src/index.tsx#L119
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No type error as in v7.3.0
Screenshots
Desktop (please complete the following information):
❯ ./node_modules/.bin/tsc -v
Version 5.6.2
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: