Skip to content

Commit

Permalink
fix: 🐛(xgplayer) 修复调用changeDefinitionList后用户已选择的选项被重置的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chenrui.92__dcar committed Oct 24, 2024
1 parent d4c4bd0 commit f7cc103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xgplayer/src/plugins/definition/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default class DefinitionIcon extends OptionsIcon {
}

renderItemList (list = this.config.list || [], to) {
const targetDef = to && to.definition ? to.definition : this.config.defaultDefinition
const targetDef = to && to.definition ? to.definition : this.curItem ? this.curItem.definition : this.config.defaultDefinition
if (to) {
list.forEach((item) => {
item.selected = false
Expand Down

0 comments on commit f7cc103

Please sign in to comment.