FIX: Small adjustments after feedback
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
b95c0642da
commit
43e9cb3523
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user