diff --git a/components/radio/group.tsx b/components/radio/group.tsx index 9e95fb74f6..24adc8532b 100644 --- a/components/radio/group.tsx +++ b/components/radio/group.tsx @@ -2,6 +2,7 @@ import * as React from 'react'; import * as PropTypes from 'prop-types'; import classNames from 'classnames'; import shallowEqual from 'shallowequal'; +import { polyfill } from 'react-lifecycles-compat'; import Radio from './radio'; import { RadioGroupProps, @@ -22,7 +23,7 @@ function getCheckedValue(children: React.ReactNode) { return matched ? { value } : undefined; } -export default class RadioGroup extends React.Component { +class RadioGroup extends React.Component { static defaultProps = { disabled: false, prefixCls: 'ant-radio', @@ -33,6 +34,22 @@ export default class RadioGroup extends React.Component