Skip to content

Commit

Permalink
fix(datepicker): fixed chrome crashed bug by scrollList aria prop #2722
Browse files Browse the repository at this point in the history
… (#2723)

Co-authored-by: shijia.me <[email protected]>
  • Loading branch information
shijiatongxue and shijiame authored Feb 21, 2025
1 parent 479f0f8 commit 5ec3889
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/semi-ui/scrollList/scrollItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,10 @@ export default class ScrollItem<T extends Item> extends BaseComponent<ScrollItem
key={prefixKey + index}
{...events}
className={cls}
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
role="option"
aria-selected={selected}
//
// aria-selected={selected}
aria-disabled={item.disabled}
>
{text}
Expand Down

0 comments on commit 5ec3889

Please sign in to comment.