fix(a11y): the chat input is announced as a text field by screen readers (#32808)

This commit is contained in:
G30 2026-10-21 01:59:20 -04:00 • committed by GitHub
parent f5e8f84e69
commit 495198508d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1040,7 +1040,12 @@
editorProps: {
// the tiptap placeholder never becomes the field's accessible name;
// function form so a placeholder change is picked up after mount
attributes: () => ({ id, 'aria-label': _placeholder }),
attributes: () => ({
id,
role: 'textbox',
'aria-multiline': 'true',
'aria-label': _placeholder
}),
transformPasted: (slice) => {
const stripMentionLinks = (fragment: Fragment): Fragment => {
const nodes: Node[] = [];