diff --git a/src/date-picker/calendar.jsx b/src/date-picker/calendar.jsx index 665f99ee01e413..915e294a5ca82c 100644 --- a/src/date-picker/calendar.jsx +++ b/src/date-picker/calendar.jsx @@ -1,5 +1,5 @@ import React from 'react'; -import WindowListenable from '../mixins/window-listenable'; +import EventListener from 'react-event-listener'; import DateTime from '../utils/date-time'; import KeyCode from '../utils/key-code'; import Transitions from '../styles/transitions'; @@ -37,10 +37,6 @@ const Calendar = React.createClass({ muiTheme: React.PropTypes.object, }, - mixins: [ - WindowListenable, - ], - getDefaultProps() { return { disableYearSelection: false, @@ -81,10 +77,6 @@ const Calendar = React.createClass({ this.setState({muiTheme}); }, - windowListeners: { - keydown: '_handleWindowKeyDown', - }, - _yearSelector() { if (this.props.disableYearSelection) return; @@ -303,6 +295,10 @@ const Calendar = React.createClass({ return ( + +