chatscope / chatscope/chat-ui-kit-react

Access to ref and properties of the contenteditable div in the MessageInput

Open
#95 1 comment 0 reactions 1 assignee Claimed by @supersnager View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.