mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-19 23:37:15 +08:00
fix iframe will take away the focus
This commit is contained in:
@@ -53,7 +53,7 @@ export const useCurrentView = () => {
|
|||||||
export const useLazyIframe = (
|
export const useLazyIframe = (
|
||||||
link: string,
|
link: string,
|
||||||
timers: number,
|
timers: number,
|
||||||
container: MutableRefObject<any>
|
container: MutableRefObject<HTMLElement>
|
||||||
) => {
|
) => {
|
||||||
const [iframeShow, setIframeShow] = useState(false);
|
const [iframeShow, setIframeShow] = useState(false);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user