mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 08:15:52 +01:00
refactor(react/dialogs): solve client errors
This commit is contained in:
@@ -9,8 +9,8 @@ interface DropdownProps {
|
||||
}
|
||||
|
||||
export default function Dropdown({ className, isStatic, children }: DropdownProps) {
|
||||
const dropdownRef = useRef<HTMLDivElement>();
|
||||
const triggerRef = useRef<HTMLButtonElement>();
|
||||
const dropdownRef = useRef<HTMLDivElement | null>(null);
|
||||
const triggerRef = useRef<HTMLButtonElement | null>(null);
|
||||
|
||||
if (triggerRef?.current) {
|
||||
useEffect(() => {
|
||||
|
||||
@@ -9,7 +9,7 @@ interface NoteAutocompleteProps {
|
||||
inputRef?: RefObject<HTMLInputElement>;
|
||||
text?: string;
|
||||
placeholder?: string;
|
||||
container?: RefObject<HTMLDivElement>;
|
||||
container?: RefObject<HTMLElement | null | undefined>;
|
||||
containerStyle?: CSSProperties;
|
||||
opts?: Omit<Options, "container">;
|
||||
onChange?: (suggestion: Suggestion | null) => void;
|
||||
|
||||
Reference in New Issue
Block a user