Skip to content

Commit

Permalink
fix : mui#11432 : Correct classNames call in ListItem.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rdemirov authored and oliviertassinari committed May 19, 2018
1 parent c60ff6c commit f2729a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/material-ui/src/ListItem/ListItem.js
Expand Up @@ -106,7 +106,10 @@ class ListItem extends React.Component {

if (button) {
componentProps.component = componentProp || 'div';
componentProps.focusVisibleClassName = classnames(classes.focusVisible, focusVisibleClassName);
componentProps.focusVisibleClassName = classNames(
classes.focusVisible,
focusVisibleClassName,
);
Component = ButtonBase;
}

Expand Down Expand Up @@ -187,6 +190,7 @@ ListItem.propTypes = {
* If `true`, a 1px light border is added to the bottom of the list item.
*/
divider: PropTypes.bool,
focusVisibleClassName: PropTypes.string,
};

ListItem.defaultProps = {
Expand Down

0 comments on commit f2729a8

Please sign in to comment.