From 1739edb479a754ffd1883d7ec0504b0bc21509b4 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Mon, 24 Jul 2023 12:51:21 +0200 Subject: [PATCH] Calculate `aria-expanded` purely based on the open/closed state (#2610) * define `aria-expanded` based on open/closed state You shouldn't be able to open a Listbox/Menu/Combobox/... when the component is in a disabled state, however if you open it, and then disable it then it is still in an open state. Therefore the `aria-expanded` should still be present. This is also how other libraries behave. It is also how the native `