Material-ui: [IE10] ListItem initiallyOpen error

Created on 19 Apr 2016  路  8Comments  路  Source: mui-org/material-ui

Problem Description

IE 9 and 10 worked fine with alpha versions, but using beta it throws the following error:
Unable to get property 'initiallyOpen' of undefined or null reference
You can test the documentation site to see the error:
http://www.material-ui.com/v0.15.0-beta.1/

Versions

  • Material-UI: 0.15.0-beta.1
  • React: 15.0.1
  • Browser: IE 9-10

Most helpful comment

I have the same issue

  • Material UI Version 0.15.0-beta.2
  • React 15.0.2
  • Browser IE 10
  • All 8 comments

    I have the same issue

  • Material UI Version 0.15.0-beta.2
  • React 15.0.2
  • Browser IE 10
  • Also happens in the final release

    • Material UI version v0.15.0
    • React 15.0.2
    • Browser IE 10 (on Windows Server 2012)

    Any development about this issue?

    The issue is that IE doesn't like the javascript that babel generates. See https://babeljs.io/docs/usage/caveats/. Including the babel-polyfill package resolved this issue for me. Another workaround might be to apply the "loose" option in babel to generate more compatible javascript (http://babeljs.io/docs/plugins/transform-es2015-classes/).

    @jonaslundgren I tried your solution in my project but nothing worked for me. How have you configured your babel to make it work? IE10 doesn't seems to like that when we call this.props in state declaration.

    +1 for this issue. Any resolution?

    @hhaidar this can be fixed by moving the assignment of open into componentWillMount

    Was this page helpful?
    0 / 5 - 0 ratings

    Related issues

    revskill10 picture revskill10  路  3Comments

    newoga picture newoga  路  3Comments

    ericraffin picture ericraffin  路  3Comments

    ghost picture ghost  路  3Comments

    mattmiddlesworth picture mattmiddlesworth  路  3Comments