Fixed: Default id for MenuContent

pull/3861/head
Devin Buhl 5 years ago
parent ee91cb99ce
commit e0b6bde525

@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import getUniqueElementId from 'Utilities/getUniqueElementId';
import Scroller from 'Components/Scroller/Scroller';
import styles from './MenuContent.css';
@ -40,14 +41,15 @@ class MenuContent extends Component {
MenuContent.propTypes = {
forwardedRef: PropTypes.func,
className: PropTypes.string,
id: PropTypes.string,
id: PropTypes.string.isRequired,
children: PropTypes.node.isRequired,
style: PropTypes.object,
isOpen: PropTypes.bool
};
MenuContent.defaultProps = {
className: styles.menuContent
className: styles.menuContent,
id: getUniqueElementId()
};
export default MenuContent;

Loading…
Cancel
Save