Open GrigoriyPol opened 11 months ago
hey have u found out any way to achieve this?
To implement a shared editor ref for managing blur behavior, follow these steps:
Create a context for the editor ref in a new file:
`// FlowChatRefContext.js import React, { createContext, useContext } from "react";
// Create the context const FlowChatRefContext = createContext(null);
// Provider component to wrap around components needing access to the ref export const FlowChatRefProvider = ({ children }: any) => { const ref: any = React.createRef(); return (
I want to dismiss keyboard when user loses focus (scroll or tap outside of the editor area) but it doesn't work. Also I couldn't find how to use focus and blur methods to do it manually.