mirror of
				https://github.com/videojs/video.js.git
				synced 2025-10-31 00:08:01 +02:00 
			
		
		
		
	Using the default example, when disposing the player, a React DOMException was thrown because Video.js removed an element managed by React. A simple solution is to wrap the player div in a separate div. Fixes #4935.
This commit is contained in:
		| @@ -28,8 +28,10 @@ export default class VideoPlayer extends React.Component { | ||||
|   // see https://github.com/videojs/video.js/pull/3856 | ||||
|   render() { | ||||
|     return ( | ||||
|       <div data-vjs-player> | ||||
|         <video ref={ node => this.videoNode = node } className="video-js"></video> | ||||
|       <div>	 | ||||
|         <div data-vjs-player> | ||||
|           <video ref={ node => this.videoNode = node } className="video-js"></video> | ||||
|         </div> | ||||
|       </div> | ||||
|     ) | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user