Material-ui: Not able disable touch ripples on ListItem.

Created on 3 Jun 2016  路  1Comment  路  Source: mui-org/material-ui

Problem description

I'm not able to disable touch ripples on ListItem.

Steps to reproduce

I tried the following.

ListItem.defaultProps.disableTouchRipple = true;
ListItem.defaultProps.disableFocusRipple = true;

and

.mui-ripple-circle {display: none}

Versions

  • Material-UI: 0.14.2
  • React: 0.14.6
  • Browser: Chrome

Most helpful comment

I was able to fix the issue by moving this code from componentDidMount to componentWillMount.

ListItem.defaultProps.disableTouchRipple = true; ListItem.defaultProps.disableFocusRipple = true;

Closing the issue.

>All comments

I was able to fix the issue by moving this code from componentDidMount to componentWillMount.

ListItem.defaultProps.disableTouchRipple = true; ListItem.defaultProps.disableFocusRipple = true;

Closing the issue.

Was this page helpful?
0 / 5 - 0 ratings