Skip to content

Commit

Permalink
fix(webchat): fix single choice needs to be clicked twice for them to…
Browse files Browse the repository at this point in the history
… work (#589)
  • Loading branch information
michaelmass committed Apr 24, 2023
1 parent 3922a00 commit 6afc1bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ local_resource(
serve_dir="packages/inject",
serve_cmd="yarn serve",
labels=["service"],
resource_deps=["messaging"],
)
2 changes: 1 addition & 1 deletion packages/webchat/src/components/messages/MessageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class MessageList extends React.Component<MessageListProps, State> {

componentDidMount() {
observe(this.props.focusedArea!, (focus) => {
focus.newValue === 'convo' && this.messagesDiv.focus()
focus.newValue === 'convo' && this.messagesDiv?.focus()
})
}

Expand Down

0 comments on commit 6afc1bc

Please sign in to comment.