Material-ui: focusState property in MenuItem can't be set

Created on 7 Oct 2016  路  2Comments  路  Source: mui-org/material-ui

Problem description

When I set the property focusState in a MenuItem component it doesn't cae about it and it is replaced for other values.

Steps to reproduce

Create many MenuItem in a Menu and set the property focusState with different values.

Versions

  • Material-UI: 0.15.4
  • React: 15.3.2
  • Browser: Chrome 53.0.2785.143 (64-bit)
bug 馃悰

Most helpful comment

I kinda managed to get around this bug ... using Menu.props.disableAutoFocus, set it to :

  • true for normal mouse focus events
  • false to allow keyboard-focused events

Just forget about MenuItem.focusState
Took me some hours to get the thing working tough....

All 2 comments

I kinda managed to get around this bug ... using Menu.props.disableAutoFocus, set it to :

  • true for normal mouse focus events
  • false to allow keyboard-focused events

Just forget about MenuItem.focusState
Took me some hours to get the thing working tough....

We have been porting the component on the v1-beta branch. We reimplemented it from the ground-up. While we haven't tested it, I think that the issue is most likely fixed on that branch. Hence, I'm closing it.
Still, we will accept PR fixes until v1-beta takes over the master branch.

Was this page helpful?
0 / 5 - 0 ratings