chatscope / chatscope/chat-ui-kit-react
Access to ref and properties of the contenteditable div in the MessageInput
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 1.8k
- Forks
- 154
- PR merge metrics
- No merged PRs in 30d
Description
Sometimes we need to set the properties of the inner contenteditale div in MessageInput.
For example to set tabIndex, aria-* attributes, or get a reference to manipulate the content directly.
Now this is only possible using querySelector, but this is not the React way.
So we need to add a new property (eg. inputProps) to the **<MessageInput />** component to enable passing properties directly to the inner div.
Related: #93, #94
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.