From 779e13569c601937e83ca4941fcc14f14511389b Mon Sep 17 00:00:00 2001 From: Nathan Mo <54135657+QizhengMo@users.noreply.github.com> Date: Fri, 6 Jan 2023 17:40:14 +0800 Subject: [PATCH] fix: aria-live not reading aria-label --- src/OptionList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OptionList.tsx b/src/OptionList.tsx index d8628ece..0831360e 100644 --- a/src/OptionList.tsx +++ b/src/OptionList.tsx @@ -211,7 +211,7 @@ const OptionList: React.RefForwardingComponent = (_, r
{activeEntity && open && ( - {activeEntity.node.value} + {activeEntity.node['aria-label'] || activeEntity.node.value} )}