Skip to content

Commit

Permalink
fix: fix chat history navigation on ios
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Mar 10, 2024
1 parent 45c290f commit af43339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/ChatContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default ({ messages, opacity = 1, fetchCompletionItems, opened, sendMessa

const auxInputFocus = (fireKey: string) => {
chatInput.current.focus()
document.dispatchEvent(new KeyboardEvent('keydown', { code: fireKey }))
chatInput.current.dispatchEvent(new KeyboardEvent('keydown', { code: fireKey, bubbles: true }))
}

const getDefaultCompleteValue = () => {
Expand Down

0 comments on commit af43339

Please sign in to comment.