FIX: Small adjustments after feedback

This commit is contained in:
Daniel
2025-01-11 18:17:20 +01:00
committed by Nicolás Hatcher Andrés
parent b95c0642da
commit 43e9cb3523
2 changed files with 5 additions and 4 deletions

View File

@@ -15,9 +15,6 @@ function UploadFileDialog(properties: {
useEffect(() => { useEffect(() => {
const root = document.getElementById("root"); const root = document.getElementById("root");
if (root) {
root.style.filter = "none";
}
if (crossRef.current) { if (crossRef.current) {
crossRef.current.focus(); crossRef.current.focus();
} }

View File

@@ -40,7 +40,11 @@ const FormatPicker = (properties: FormatPickerProps) => {
onClick={handleClose} onClick={handleClose}
title={t("num_fmt.close")} title={t("num_fmt.close")}
tabIndex={0} tabIndex={0}
onKeyDown={(event) => event.key === "Enter" && properties.onClose()} onKeyDown={(event) => {
if (event.key === "Enter") {
properties.onClose();
}
}}
> >
<X /> <X />
</Cross> </Cross>