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 v16.0 & Popover issue #135

Closed
PlanetIrata opened this issue Sep 26, 2017 · 12 comments · Fixed by #141
Closed

React v16.0 & Popover issue #135

PlanetIrata opened this issue Sep 26, 2017 · 12 comments · Fixed by #141

Comments

@PlanetIrata
Copy link

PlanetIrata commented Sep 26, 2017

Hi, I just upgraded my app to React v16.0, everything is working fine but the component do not render anymore, here is the error reported in the console:

index.js:199 Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': 
parameter 1 is not of type 'Element'.
    at Object.resolvePopoverLayout (index.js:199)
    at Object.trackPopover (index.js:429)
    at Object.enter (index.js:328)
    at Object.componentDidUpdate (index.js:153)
    at Object.chainedFunction [as componentDidUpdate] (factory.js:615)
    at commitLifeCycles (react-dom.development.js:11517)
    at commitAllLifeCycles (react-dom.development.js:12294)
    at HTMLUnknownElement.callCallback (react-dom.development.js:1299)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:1338)
    at invokeGuardedCallback (react-dom.development.js:1195)
    at commitAllWork (react-dom.development.js:12415)
    at workLoop (react-dom.development.js:12687)
    at HTMLUnknownElement.callCallback (react-dom.development.js:1299)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:1338)
    at invokeGuardedCallback (react-dom.development.js:1195)
    at performWork (react-dom.development.js:12800)
    at batchedUpdates (react-dom.development.js:13244)
    at performFiberBatchedUpdates (react-dom.development.js:1646)
    at stackBatchedUpdates (react-dom.development.js:1637)
    at batchedUpdates (react-dom.development.js:1651)
    at Object.batchedUpdatesWithControlledComponents [as batchedUpdates] (react-dom.development.js:1664)
    at dispatchEvent (react-dom.development.js:1874)

Thanks for help

@PlanetIrata PlanetIrata changed the title React 16 Popover render bug React v16.0 & Popover issue Sep 26, 2017
@knowbody
Copy link

@jasonkuhrt
Copy link
Owner

Thanks for reporting. I'll look into fixing this this week. PR's welcome.

@PlanetIrata
Copy link
Author

Thanks @jasonkuhrt for taking time to fix this, the issue I encouter may be related to changes introduced in componentDidUpdate calls & lifecycle which are detailed in the Breaking changes of React v16.0

@knowbody
Copy link

actually #129 fixes my issue so I'll wait for the next release

@jasonkuhrt
Copy link
Owner

@knowbody that release has been made so check it out.

@knowbody
Copy link

knowbody commented Sep 29, 2017 via email

@jebarjonet
Copy link

This is fixing knowbody issue but PlanetIrata one is still occuring to me too since I switched to react v16

@jasonkuhrt
Copy link
Owner

I started work on transitioning to React 16 last night. It will be a big but good change. For instance no more custom portal implementation to maintain. That said I'm ramping up so not sure how long this is going to take. I'm hoping that a few nights and bus rides will be enough. I'll make a WIP PR soon so I have a place to put comments and progress can be better tracked.

@knowbody
Copy link

knowbody commented Oct 2, 2017

@jasonkuhrt thanks a lot, I started looking into it this morning too, happy to help on it. Do you want to commit your work so we can put the forces together?

Also how happy would you be to remove the mixin and createClass and move to ES6?

also would you make that upgrade a breaking change and make a 1.0.0 release or would you want to support previous versions of React as well?

Here are some useful resources:

@jasonkuhrt
Copy link
Owner

jasonkuhrt commented Oct 2, 2017

This is will be a breaking change going to 0.5. 1.0 will be released minimum once Forto is integrated, using flowtype, ... A checklist will be made for the community to help decide what features go into it (ideally).

In regards to backwards compatibility or support (officially), I don't have the bandwidth for that so this will be a line in the sand for users. I think the incentive to upgrade to React 16 is strong enough that most users will probably be ok with this fact.

@jasonkuhrt
Copy link
Owner

@knowbody Just saw your comment changes.

Also how happy would you be to remove the mixin and createClass and move to ES6?

Yes absolutely.

Here are some useful resources:

Thanks!

Do you want to commit your work so we can put the forces together?

Sounds good to me. I'll try to publish a branch tonight.

@jasonkuhrt jasonkuhrt mentioned this issue Oct 2, 2017
3 tasks
jasonkuhrt pushed a commit that referenced this issue Oct 3, 2017
@jasonkuhrt
Copy link
Owner

I'll be cutting a release tonight unless an issue is found. Looking alright so far though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants