You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { Calendar } from 'antd'
...
<Calendar
fullscreen={false}
/>
I thought I lost the attribute value and defautValue for a moment object
After I got the errors I did this:
import moment from 'moment'
import 'moment/locale/zh-cn'
render(){
const startTime = moment.momentToFormat
...
value={startTime}
defaultValue={startTime}
}
What is expected?
I dont`t want to see any error at chrome console.
I read the doc and I try to complete the attibute value and defautlValue,
What is actually happening?
but in the end, I got :
Warning: Failed value type: The value isRequired is marked as required in Select, but its value is undefined.
Warning: Failed defaultValue type: The defaultValue isRequired is marked as required in Select, but its value is undefined.'
I don`t how can I clear these errors, could you help me?
The text was updated successfully, but these errors were encountered:
Version
3.11.2
Environment
cli:umi(v2.1.2) browers:chrome react-native:7.11.1
Reproduction link
https://github.com/Wanchaochao/react-blog/blob/master/src/pages/layouts/index.js
Steps to reproduce
I create my project with umi-cli
and the error in the page
I thought I lost the attribute value and defautValue for a moment object
After I got the errors I did this:
What is expected?
I dont`t want to see any error at chrome console.
I read the doc and I try to complete the attibute value and defautlValue,
What is actually happening?
but in the end, I got :
Warning: Failed value type: The value
isRequired
is marked as required inSelect
, but its value isundefined
.Warning: Failed defaultValue type: The defaultValue
isRequired
is marked as required inSelect
, but its value isundefined
.'I don`t how can I clear these errors, could you help me?
The text was updated successfully, but these errors were encountered: