changing months in datepicker (Firefox) is failing as event object is undefined
parent
12e9e4bf4f
commit
87cf774a37
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue