We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea972cd commit 1d532b7Copy full SHA for 1d532b7
lib/Draggable.es6
@@ -174,7 +174,7 @@ export default class Draggable extends React.Component {
174
175
componentDidMount() {
176
// Check to see if the element passed is an instanceof SVGElement
177
- if(ReactDOM.findDOMNode(this) instanceof SVGElement) {
+ if(typeof global.SVGElement !== 'undefined' && ReactDOM.findDOMNode(this) instanceof global.SVGElement) {
178
this.setState({ isElementSVG: true });
179
}
180
0 commit comments