Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 0.14 - Card throw #1868

Closed
cgestes opened this issue Oct 13, 2015 · 5 comments · Fixed by #1872
Closed

React 0.14 - Card throw #1868

cgestes opened this issue Oct 13, 2015 · 5 comments · Fixed by #1872
Labels
component: card This is the name of the generic UI component, not the React module!

Comments

@cgestes
Copy link
Contributor

cgestes commented Oct 13, 2015

Uncaught TypeError: Can't add property onTouchTap, object is not extensible card.jsx:46

in code:

  if (currentChild.props.actAsExpander === true) {
    currentChild.props.onTouchTap = this._onExpandable;
    currentChild.props.style = this.mergeStyles({ cursor: 'pointer' }, currentChild.props.style);
  }
@cgestes
Copy link
Contributor Author

cgestes commented Oct 13, 2015

@hugo-agbonon

@cgestes
Copy link
Contributor Author

cgestes commented Oct 13, 2015

dont know if this fail also on master. (I'am working on react-0.14-support). But I'am pretty the fix will work on both branch.

@codeheroics
Copy link
Contributor

I don't think it fails on the master (the docs website is still OK, both online and when I build it), but yeah, sorry, I hadn't tried this at all with react 0.14.
I think words are missing from from your last sentence, are you saying you already have a fix (or fix idea) for 0.14 support?

@cgestes
Copy link
Contributor Author

cgestes commented Oct 13, 2015

No fix from my side, I guess it's not possible anymore to modify child in
react they must be cloned. I had no time to look at the issue atm

On Tue, Oct 13, 2015, 19:41 Hugo Agbonon notifications@github.com wrote:

I don't think it fails on the master (the docs website is still OK, both
online and when I build it), but yeah, sorry, I hadn't tried this at all
with react 0.14.
I think words are missing from from your last sentence, are you saying you
already have a fix (or fix idea) for 0.14 support?


Reply to this email directly or view it on GitHub
#1868 (comment)
.

@cgestes
Copy link
Contributor Author

cgestes commented Oct 13, 2015

Fixed. Will send a PR later on tonight

On Tue, Oct 13, 2015, 20:24 Cedric GESTES cedric.gestes@gmail.com wrote:

No fix from my side, I guess it's not possible anymore to modify child in
react they must be cloned. I had no time to look at the issue atm

On Tue, Oct 13, 2015, 19:41 Hugo Agbonon notifications@github.com wrote:

I don't think it fails on the master (the docs website is still OK, both
online and when I build it), but yeah, sorry, I hadn't tried this at all
with react 0.14.
I think words are missing from from your last sentence, are you saying
you already have a fix (or fix idea) for 0.14 support?


Reply to this email directly or view it on GitHub
#1868 (comment)
.

mnajdova pushed a commit to mnajdova/material-ui that referenced this issue Nov 10, 2020
@zannager zannager added the component: card This is the name of the generic UI component, not the React module! label Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: card This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants