Skip to content

Commit

Permalink
Merge branch 'develop' into feature/add-lint-hook
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-hoc authored Jan 8, 2025
2 parents 0b43312 + b3fdcd9 commit f3b3996
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
## [3.78.0] - 2025-01-08

### Changed
- Chore: Switch from `tslint` to `eslint` for linting
Expand Down Expand Up @@ -1033,6 +1033,7 @@ Version 2.0 of the UI framework is built for player 7.1. If absolutely necessary
## 1.0.0 (2017-02-03)
- First release

[3.78.0]: https://github.com/bitmovin/bitmovin-player-ui/compare/v3.77.0...v3.78.0
[3.77.0]: https://github.com/bitmovin/bitmovin-player-ui/compare/v3.76.0...v3.77.0
[3.76.0]: https://github.com/bitmovin/bitmovin-player-ui/compare/v3.75.0...v3.76.0
[3.75.0]: https://github.com/bitmovin/bitmovin-player-ui/compare/v3.74.0...v3.75.0
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bitmovin-player-ui",
"version": "3.77.0",
"version": "3.78.0",
"description": "Bitmovin Player UI Framework",
"main": "./dist/js/framework/main.js",
"types": "./dist/js/framework/main.d.ts",
Expand Down
8 changes: 7 additions & 1 deletion src/ts/components/listselector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,13 @@ export abstract class ListSelector<Config extends ListSelectorConfig> extends Co
}

private getItemIndex(key: string): number {
return this.items.findIndex((item) => item.key === key);
for (let i = 0; i < this.items.length; i++) {
if (this.items[i].key === key) {
return i;
}
}

return -1;
}

/**
Expand Down

0 comments on commit f3b3996

Please sign in to comment.