警告: `NaN` 是 `height` CSS 样式属性的无效值。
I'm getting the following warnings in a Jest test:
console.error node_modules/fbjs/lib/warning.js:33
Warning: NaN is an invalid value for the height css style property.
in div (created by DayPicker)
in div (created by DayPicker)
in div (created by DayPicker)
in div (created by OutsideClickHandler)
in OutsideClickHandler (created by DayPicker)
in div (created by DayPicker)
in DayPicker (created by withStyles(DayPicker))
in withStyles(DayPicker) (created by DayPickerSingleDateController)
in DayPickerSingleDateController (at DateTimeSelector.js:131)
in div (created by DateTimeSelector__DayPickerWrapper)
in DateTimeSelector__DayPickerWrapper (at DateTimeSelector.js:130)
in div (created by DateTimeSelector__Container)
in DateTimeSelector__Container (at DateTimeSelector.js:126)
in DateTimeSelector (created by Connect(DateTimeSelector))
in Connect(DateTimeSelector) (at OrderPage.js:166)
in div (created by OrderPage__Container)
in OrderPage__Container (at OrderPage.js:165)
in OrderPage (created by Connect(OrderPage))
in Connect(OrderPage) (at index.js:9)
in Route (at index.js:5)
in ProtectedRoute (at PortalApp.js:36)
in Switch (at PortalApp.js:22)
in div (at PortalApp.js:20)
in Router (created by BrowserRouter)
in BrowserRouter (at PortalApp.js:19)
in Routes (created by Connect(Routes))
in Connect(Routes) (at PortalApp.js:85)
in Provider (at PortalApp.js:84)
in PortalApp (created by WrapperComponent)
in WrapperComponent
内容来源: react-dates/react-dates