Skip to content

Commit

Permalink
Botonic React: add user-input css class (#2309)
Browse files Browse the repository at this point in the history
* feat(botonic-react): add user-input css class

* chore(react): format files for linter error

---------

Co-authored-by: Marc Rabat <marcrabat@gmail.com>
  • Loading branch information
Iru89 and vanbasten17 committed Mar 23, 2023
1 parent 69c2d35 commit df82dfd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { ROLES } from '../../constants'
import { useComponentVisible } from '../hooks'
import { Icon, IconContainer } from './common'

export const EmojiPicker = props =>{
const onClick = event =>{
export const EmojiPicker = props => {
const onClick = event => {
props.onClick()
event.stopPropagation()
}
Expand All @@ -20,7 +20,7 @@ export const EmojiPicker = props =>{
</div>
</IconContainer>
)
}
}

const Container = styled.div`
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ export class ScrollbarController {
return
}
this.webchat.ontouchmove = e => {
if(e.target === e.currentTarget)
e.preventDefault()
if (e.target === e.currentTarget) e.preventDefault()
}
}

Expand Down
1 change: 1 addition & 0 deletions packages/botonic-react/src/webchat/webchat.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -813,6 +813,7 @@ export const Webchat = forwardRef((props, ref) => {
style={{
...getThemeProperty(WEBCHAT.CUSTOM_PROPERTIES.userInputStyle),
}}
className='user-input-container'
>
{webchatState.isEmojiPickerOpen && (
<OpenedEmojiPicker
Expand Down

0 comments on commit df82dfd

Please sign in to comment.