Skip to content

Commit

Permalink
Add "aria-selected" to "preserve if falsy" x-bind attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
calebporzio committed Jan 15, 2022
1 parent 6de8c65 commit 0779c12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/alpinejs/src/utils/bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function isBooleanAttr(attrName) {
}

function attributeShouldntBePreservedIfFalsy(name) {
return ! ['aria-pressed', 'aria-checked', 'aria-expanded'].includes(name)
return ! ['aria-pressed', 'aria-checked', 'aria-expanded', 'aria-selected'].includes(name)
}

export function getBinding(el, name, fallback) {
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alpinejs/docs",
"version": "3.8.0-revision.2",
"version": "3.8.0-revision.3",
"description": "The documentation for Alpine",
"author": "Caleb Porzio",
"license": "MIT"
Expand Down

0 comments on commit 0779c12

Please sign in to comment.