Skip to content

Commit f6c2aa1

Browse files
author
chenrui.92__dcar
committed
fix: 🐛(xgplayer) 修复调用changeDefinitionList后用户已选择的选项被重置的问题
1 parent cabfdd7 commit f6c2aa1

File tree

1 file changed

+1
-1
lines changed
  • packages/xgplayer/src/plugins/definition

1 file changed

+1
-1
lines changed

packages/xgplayer/src/plugins/definition/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default class DefinitionIcon extends OptionsIcon {
103103
}
104104

105105
renderItemList (list = this.config.list || [], to) {
106-
const targetDef = to && to.definition ? to.definition : this.config.defaultDefinition
106+
const targetDef = to && to.definition ? to.definition : this.curItem ? this.curItem.definition : this.config.defaultDefinition
107107
if (to) {
108108
list.forEach((item) => {
109109
item.selected = false

0 commit comments

Comments
 (0)