Skip to content

Commit 4f6d10c

Browse files
Ellipsis feedback on type
1 parent 86d9722 commit 4f6d10c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/components/chat/hooks/useFocusPreservation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { useState, useEffect, useRef } from "react"
1515
* this hook will track the "focussed" state, and reinstate it once the element
1616
* is no longer hidden.
1717
*/
18-
export function useFocusPreservation(element: HTMLElement | null, isHidden: Boolean) {
18+
export function useFocusPreservation(element: HTMLElement | null, isHidden: boolean) {
1919
const [isFocused, setIsFocused] = useState(false)
2020
const isHiddenRef = useRef(isHidden)
2121
const isHiddenLastChangedRef = useRef(0)

0 commit comments

Comments
 (0)