-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
fix: tight controlbar coupling (#7689) #7692
fix: tight controlbar coupling (#7689) #7692
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, these missing null checks are too common! Would you mind adding a test for this case?
Done.. |
Codecov Report
@@ Coverage Diff @@
## main #7692 +/- ##
==========================================
+ Coverage 80.89% 80.91% +0.01%
==========================================
Files 116 116
Lines 7455 7455
Branches 1806 1807 +1
==========================================
+ Hits 6031 6032 +1
+ Misses 1424 1423 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor quibble, otherwise looks good!
Co-authored-by: Pat O'Neill <pgoneill@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested manually with a player with controlBar: false
, looks good.
@misteroneill Excuse me, when to expect patch with this fix?) |
Congrats on merging your first pull request! 🎉🎉🎉 |
Fixes videojs#7689 Co-authored-by: alex <try2betheb3st@gmail.com> Co-authored-by: Pat O'Neill <pgoneill@gmail.com>
Description
We have tight coupling in player.js Class Player method resetControlBarUI_(), when using reset() method.
ControlBar component may be not exists or exists on another nesting level.
Fixes #7689
Specific Changes proposed
Added condition
Requirements Checklist