Skip to content

Bug: Player Adds Inert Attribute to All Tags Outside the Player on an Error #2878

Description

@danrossi

Is there an existing issue for this?

  • I have searched the existing issues

Which package(s) or projects are affected?

HTML (@videojs/html)

Browser/OS/Node environment

Browser: Brave
OS: Windows

Description

I've discovered when I am trying to add a modal-error-dialog to the player for something else to display a message. When there is a player error the player is adding inert attributes to all wrapping layers and tags. Making anything outside the player not clickable. I'm not sure how to prevent it other than to not use the dialog component.

I updated and meant the error dialog.

Reduced test case

https://jsfiddle.net/danrossi303/wrgtmcay/4/

Steps to reproduce

  1. add an error dialog component https://videojs.org/docs/framework/html/reference/error-dialog
  2. use a non existing source to trigger an error
  3. inert attributes are added and nothing is clickable

Current Behavior

inert attributes are being added to elements outside the player in the fiddle is happening to the script tags for some reason. In local tests it's in the main page container layer.

Expected Behavior

Leave elements outside the player alone.

Errors

No response

What version of the package are you using?

v10.0.0-rc.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions