onefinestay / react-daterange-picker

Other
563 stars 208 forks source link

Doesn't work with react 0.14 #82

Closed goldensunliu closed 8 years ago

goldensunliu commented 8 years ago

on https://github.com/onefinestay/react-daterange-picker/blob/master/src/DateRangePicker.jsx#L22

React.initializeTouchEvents(true);

is called

with React v 0.14

React.initializeTouchEvents is no longer necessary and has been removed completely. 
Touch events now work automatically.
AlanFoster commented 8 years ago

For visibility #79 Plans to deal with this issue.

goldensunliu commented 8 years ago

is this ready to be closed?

nikulinsanya commented 8 years ago

I still get several errors with react 0.14 Warning: require('react/addons') is deprecated. Access using require('react-addons-{addon}') DateRangePicker.js:59 Uncaught TypeError: _reactAddons2.default.initializeTouchEvents is not a function

goldensunliu commented 8 years ago

@nikulinsanya are you sure you have done a clean 'npm install'? You will see those if your react dependency is out dated.

AlanFoster commented 8 years ago

This should be resolved now, thanks to the v1.0.0 release