From 0dd9aba47f58851abc3ef60b1acddf5a8ab6407a Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Tue, 11 Oct 2022 10:09:57 +0200 Subject: [PATCH] Fix aria-disabled --- src/components/views/rooms/wysiwyg_composer/WysiwygComposer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/wysiwyg_composer/WysiwygComposer.tsx b/src/components/views/rooms/wysiwyg_composer/WysiwygComposer.tsx index 0c416f06fa..e45324982d 100644 --- a/src/components/views/rooms/wysiwyg_composer/WysiwygComposer.tsx +++ b/src/components/views/rooms/wysiwyg_composer/WysiwygComposer.tsx @@ -62,7 +62,7 @@ export function WysiwygComposer( aria-autocomplete="list" aria-haspopup="listbox" dir="auto" - aria-disabled={!disabled && isWysiwygReady} + aria-disabled={disabled || !isWysiwygReady} /> { children?.(memoizedSendMessage) }