Skip to content

Commit 7a4f841

Browse files
committed
Fix compatibility with older versions of React
1 parent 23ec89c commit 7a4f841

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DateTimePicker.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { PureComponent } from 'react';
22
import PropTypes from 'prop-types';
3+
import { polyfill } from 'react-lifecycles-compat';
34
import mergeClassNames from 'merge-class-names';
45
import detectElementOverflow from 'detect-element-overflow';
56

@@ -382,3 +383,5 @@ DateTimePicker.propTypes = {
382383
PropTypes.instanceOf(Date),
383384
]),
384385
};
386+
387+
polyfill(DateTimePicker);

0 commit comments

Comments
 (0)