소스 검색

Fix aria-selected attribute

Jason Beggs 1 년 전
부모
커밋
11e39455ab
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/ui/src/combobox.js

+ 1 - 1
packages/ui/src/combobox.js

@@ -439,7 +439,7 @@ function handleOption(el, Alpine) {
 
         // Only the active element should have aria-selected="true"...
         'x-effect'() {
-            this.$comboboxOption.isActive
+            this.$comboboxOption.isSelected
                 ? el.setAttribute('aria-selected', true)
                 : el.removeAttribute('aria-selected')
         },