-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
botonic-react: upgrade react-textarea-autosize #2882
Conversation
c4fa3ee
to
ec09254
Compare
let isTyping = false | ||
let typingTimeout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i know this was probably done like this. not for this PR, but I think we should use refs instead of direct variables
autoFocus={false} | ||
onKeyDown={e => onKeyDown(e)} | ||
onKeyUp={onKeyUp} | ||
style={{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be passed through a styled component? have you tried it?
faf76a1
to
caa8e84
Compare
packages/botonic-react/src/webchat/webchat-input-panel/index.tsx
Outdated
Show resolved
Hide resolved
packages/botonic-react/src/webchat/webchat-input-panel/opened-emoji-picker.tsx
Show resolved
Hide resolved
## Description Create WebchatInputPanel to group all components for user input (text input, emoji picker, send attachment and send button)
a5f4436
to
3a9b16b
Compare
Description
Upgrade version of react-textarea-autosize. This version is compatible with react 16, 17 or 18
Create a component Textarea to extract logic in a new file
Create a component WebchatInputPanel that group all inputs: text input, add emoji, add file, send button
Context
More PRs merged in this PR:
Approach taken / Explain the design
To document / Usage example
Testing
The pull request...