From 0779c12a414b56a64d111efa9e8f7b82fdf9298e Mon Sep 17 00:00:00 2001 From: Caleb Porzio Date: Sat, 15 Jan 2022 09:03:31 -0500 Subject: [PATCH] Add "aria-selected" to "preserve if falsy" x-bind attributes --- packages/alpinejs/src/utils/bind.js | 2 +- packages/docs/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/alpinejs/src/utils/bind.js b/packages/alpinejs/src/utils/bind.js index c5b5a3e6b..fc89b2069 100644 --- a/packages/alpinejs/src/utils/bind.js +++ b/packages/alpinejs/src/utils/bind.js @@ -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) { diff --git a/packages/docs/package.json b/packages/docs/package.json index dd49cf4ee..357b4c1fe 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -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"