Skip to content

Commit

Permalink
Remove need for findDOMNode in Vimeo player
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Jul 13, 2017
1 parent adf1338 commit f6abc06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/players/Vimeo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react'
import { findDOMNode } from 'react-dom'
import loadScript from 'load-script'

import Base from './Base'
Expand Down Expand Up @@ -62,7 +61,7 @@ export default class Vimeo extends Base {
})
this.player.on('loaded', () => {
this.onReady()
const iframe = findDOMNode(this).querySelector('iframe')
const iframe = this.container.querySelector('iframe')
iframe.style.width = '100%'
iframe.style.height = '100%'
})
Expand Down

0 comments on commit f6abc06

Please sign in to comment.