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
If moment-hijri object is passed to DatePicker from antd as value prop; then DatePicker errors because return of value.locale() is undefined
moment-hijri
value
value.locale()
undefined
minimal codes to reproduce
import moment from "moment-hijri"; import { DatePicker } from "antd"; export default const HijriDatePicker = (props) => { return <DatePicker value={props.value} format="DD-MM-YYYY (iDD-iMM-iYYYY)" /> }
Here is CodeSandbox link to test it live.
The text was updated successfully, but these errors were encountered:
adds _abbr so that date.locale() won't be undefined
1f19ec9
reloves antd DatePicker issue of undefined doesn't have function utcOffset ref xsoh#43
uses single quote for string (Travis CI said to use so)
2d69b10
ref xsoh#43
No branches or pull requests
If
moment-hijri
object is passed to DatePicker from antd asvalue
prop; then DatePicker errors because return ofvalue.locale()
isundefined
minimal codes to reproduce
Here is CodeSandbox link to test it live.
The text was updated successfully, but these errors were encountered: