chore: update all dependencies (#699)
This commit is contained in:
@@ -151,7 +151,7 @@ export const NotesOptions = observer(
|
||||
const pinned = notes.some((note) => note.pinned);
|
||||
const unpinned = notes.some((note) => !note.pinned);
|
||||
|
||||
const tagsButtonRef = useRef<HTMLButtonElement>();
|
||||
const tagsButtonRef = useRef<HTMLButtonElement>(null);
|
||||
|
||||
const iconClass = 'color-neutral mr-2';
|
||||
|
||||
@@ -183,7 +183,7 @@ export const NotesOptions = observer(
|
||||
).fontSize;
|
||||
const maxTagsMenuSize = parseFloat(defaultFontSize) * 30;
|
||||
const { clientWidth, clientHeight } = document.documentElement;
|
||||
const buttonRect = tagsButtonRef.current.getBoundingClientRect();
|
||||
const buttonRect = tagsButtonRef.current!.getBoundingClientRect();
|
||||
const footerHeight = 32;
|
||||
|
||||
if (buttonRect.top + maxTagsMenuSize > clientHeight - footerHeight) {
|
||||
@@ -289,7 +289,7 @@ export const NotesOptions = observer(
|
||||
onKeyDown={(event) => {
|
||||
if (event.key === 'Escape') {
|
||||
setTagsMenuOpen(false);
|
||||
tagsButtonRef.current.focus();
|
||||
tagsButtonRef.current!.focus();
|
||||
}
|
||||
}}
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user