question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IE < 11: preact fails with error `Unable to get property 'style' of undefined or null reference`

See original GitHub issue

Hi @developit! It works fine in IE11 and other browsers. Here’s the minimal repro:

import {DraggableCore} from 'react-draggable'

class extends React.Component {
    render() {
        return (
            <DraggableCore>
                <div>handle</div>
            </DraggableCore>
        )
    }
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
developitcommented, Jul 23, 2016

Will be fixed in 5.6! Hopefully going out tonight. I’ve set up automated browser testing to make sure we are covered against this in the future.

0reactions
developitcommented, Jul 24, 2016

I’m looking into whether we can move the props/context initialization out of the constructor.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IE10 on Windows 7: every new tab or page opens with a script ...
Error : Unable to get property 'style' of undefined or null reference. I have : reset internet explorer, disabled all addins, ...
Read more >
getting this error in ie11: Unable to get property 'options' of ...
Need helping getting this to work in IE11, works fine in chrome. Getting 'Unable to get property 'options' of undefined or null reference'....
Read more >
API - esbuild
#Build API. The build API call operates on one or more files in the file system. This allows the files to reference each...
Read more >
Migrating from v2 to v3 - Gatsby
reach -router; webpack EACCES; yarn workspaces; Legacy Browser (IE 11 Polyfill) ... This is a reference for upgrading your site from Gatsby v2...
Read more >
Preact - Releases
Preact - ⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM ... Upgrade sinon dependencies to fix IE11...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found