mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-28 06:22:33 +00:00
fix(a11y): the chat input is announced as a text field by screen readers (#32808)
This commit is contained in:
parent
f5e8f84e69
commit
495198508d
1 changed files with 6 additions and 1 deletions
|
|
@ -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[] = [];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue