Material-ui: [MenuItem] onClick still fired when disabled

Created on 7 Apr 2017  路  9Comments  路  Source: mui-org/material-ui

Problem description

The onClick event of a MenuItem is still being fired if disabled is set to true.

Link to minimal working code that reproduces the issue

Webpackbin seems broken atm 馃槩

Versions

  • Material-UI: 0.17.1
  • React: 15.4.2
  • Browser: Chrome

Most helpful comment

onTouchTap seems to fire on disabled MenuItems with Material-UI 0.18.5: https://www.webpackbin.com/bins/-KoIFGpNmaNZLiMZkslA

All 9 comments

Opened a issue regarding the Webpackbin issue over there: https://github.com/christianalfoni/webpack-bin/issues/236

Okay. webpackbin is fixed. Here's a bin: https://www.webpackbin.com/bins/-Kh6UKEuSe12HL5xmpuY

onTouchTap seems to fire on disabled MenuItems with Material-UI 0.18.5: https://www.webpackbin.com/bins/-KoIFGpNmaNZLiMZkslA

this issue still persist, I don't get why this was removed

this issue was fixed in 0.18.7

I am also encountering this issue, and would like a fix as soon as possible. Using 0.19.4

@Nikhil-Shenoy We are focusing on the v1-beta branch. If this issue is still occurring, you're welcome to submit a PR.

Still see the issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anthony-dandrea picture anthony-dandrea  路  3Comments

sys13 picture sys13  路  3Comments

ryanflorence picture ryanflorence  路  3Comments

TimoRuetten picture TimoRuetten  路  3Comments

FranBran picture FranBran  路  3Comments