Skip to content

Commit

Permalink
feat(cxl-ui): cxl-jw-player format and use yoda condition
Browse files Browse the repository at this point in the history
  • Loading branch information
anoblet committed Oct 3, 2024
1 parent e179515 commit 6a6af4d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ export function TranscriptMixin(BaseClass) {
this._jwPlayer.on('playlistItem', this._setupTranscript.bind(this));

this.shadowRoot.querySelector('vaadin-text-field').addEventListener('keyup', (e) => {
if(e.key === 'Enter') {
if(this._searchResults.length) {
if(this._searchIndex === this._searchResults.length - 1) {
if ('Enter' === e.key) {
if (this._searchResults.length) {
if (this._searchIndex === this._searchResults.length - 1) {
this._searchIndex = 0;
}

Expand Down

0 comments on commit 6a6af4d

Please sign in to comment.