Skip to content

Commit

Permalink
fix(setting panel): typo
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed Jul 28, 2024
1 parent 65ec349 commit 4dd967c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oplayer/ui",
"version": "1.3.3-beta.1",
"version": "1.3.3-beta.2",
"description": "ui plugin for oplayer",
"type": "module",
"main": "./dist/index.es.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/components/Setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function createRow({
}) {
let $item: HTMLElement = $.create(`div.${settingItemCls}`, {
'data-key': key,
role: Boolean(type) ? 'menuitem' : 'menuitemradio',
role: type == 'option' ? 'menuitemradio' : 'menuitem',
'aria-haspopup': type == 'selector'
})
const res = {
Expand Down Expand Up @@ -254,7 +254,7 @@ function createPanel(
type == 'selector' && children.every((it) => !Boolean(it.type) || it.type == 'option')

const optionPanel = createPanel(player, panels, children, {
key: key || 'name',
key: key || name,
target,
parent: panel,
isSelectorOptionsPanel: nextIsSelectorOptionsPanel,
Expand Down

0 comments on commit 4dd967c

Please sign in to comment.