Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Videojs disables the click events of all the clickable components #3951

Closed
apurvgandhwani opened this issue Jan 16, 2017 · 2 comments
Closed

Comments

@apurvgandhwani
Copy link

apurvgandhwani commented Jan 16, 2017

When I include videojs in my react applications page then other buttons of other components stopped working. When I click on them, nothing happens. This goes true for tab clicks, button clicks, table row clicks. But when I remove the player from the page, then button starts working in a normal fashion. Is there any help I could get?

<div className={c.container}>
			<div className='video-section'>
					<Player/>
				<div className='video-title'> {name} </div>
				<div className='process-list'>
                    {
                        PROCESS_LIST.map((x,i)=> (
							<div
								className='process-item'
								key={i}
								onClick={this.toHome.bind(this)}> {x} </div>
                        ))
                    }
				</div>
			</div>
			<div className='details-section'>
				<VideoDetails/>
			</div>
		</div>
@apurvgandhwani
Copy link
Author

I got the reason of the problem. I solved it by placing at the bottom of the rendering tree in above code. If player gets rendered at last then it solved the problem. If you render the player first, then it blocks the functionalities of other components. Anyone with the proper reason for this behavior?

@mmcc
Copy link
Member

mmcc commented Jan 19, 2017

Have you checked out some of the other issues related to using Video.js in a React component? I have a feeling like that might be related here.

Closing because you found a solution and without more details (such as the actual Player component implementation) we're going to struggle to provide much more help.

@mmcc mmcc closed this as completed Jan 19, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants