Skip to content

Commit f6abc06

Browse files
committed
Remove need for findDOMNode in Vimeo player
1 parent adf1338 commit f6abc06

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/players/Vimeo.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react'
2-
import { findDOMNode } from 'react-dom'
32
import loadScript from 'load-script'
43

54
import Base from './Base'
@@ -62,7 +61,7 @@ export default class Vimeo extends Base {
6261
})
6362
this.player.on('loaded', () => {
6463
this.onReady()
65-
const iframe = findDOMNode(this).querySelector('iframe')
64+
const iframe = this.container.querySelector('iframe')
6665
iframe.style.width = '100%'
6766
iframe.style.height = '100%'
6867
})

0 commit comments

Comments
 (0)