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

fix(skip-forward): error when clicking after player reset #8258

Conversation

amtins
Copy link
Contributor

@amtins amtins commented May 2, 2023

Description

This PR fixes the error thrown when clicking the skip-forward button after the player has been reset.

skip-forward.webm

Specific Changes proposed

  • short-circuit the handleClick function if the duration is NaN
  • add a test case

Requirements Checklist

  • Feature implemented / Bug fixed
  • If necessary, more likely in a feature request than a bug fix
    • Change has been verified in an actual browser (Chrome, Firefox, IE)
    • Unit Tests updated or fixed
    • Docs/guides updated
    • Example created (starter template on JSBin)
  • Reviewed by Two Core Contributors

@codecov
Copy link

codecov bot commented May 2, 2023

Codecov Report

Merging #8258 (b9eb39b) into main (1491d71) will increase coverage by 82.37%.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##           main    #8258       +/-   ##
=========================================
+ Coverage      0   82.37%   +82.37%     
=========================================
  Files         0      112      +112     
  Lines         0     7476     +7476     
  Branches      0     1801     +1801     
=========================================
+ Hits          0     6158     +6158     
- Misses        0     1318     +1318     
Impacted Files Coverage Δ
src/js/control-bar/skip-buttons/skip-forward.js 100.00% <100.00%> (ø)

... and 111 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@mister-ben mister-ben added the needs: LGTM Needs one or more additional approvals label May 12, 2023
@misteroneill misteroneill merged commit 07effdf into videojs:main May 31, 2023
edirub pushed a commit to edirub/video.js that referenced this pull request Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: LGTM Needs one or more additional approvals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants