changing months in datepicker (Firefox) is failing as event object is undefined

old
andmilj 2015-11-24 23:46:31 +01:00
parent 12e9e4bf4f
commit 87cf774a37
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class Calendar extends React.Component {
this.props.onChange(viewDate); this.props.onChange(viewDate);
}; };
incrementViewMonth = () => { incrementViewMonth = (event) => {
this.refs.rippleRight.start(event); this.refs.rippleRight.start(event);
this.setState({ this.setState({
direction: 'right', direction: 'right',
@ -58,7 +58,7 @@ class Calendar extends React.Component {
}); });
}; };
decrementViewMonth = () => { decrementViewMonth = (event) => {
this.refs.rippleLeft.start(event); this.refs.rippleLeft.start(event);
this.setState({ this.setState({
direction: 'left', direction: 'left',