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(() => {
|
||||
const root = document.getElementById("root");
|
||||
if (root) {
|
||||
root.style.filter = "none";
|
||||
}
|
||||
if (crossRef.current) {
|
||||
crossRef.current.focus();
|
||||
}
|
||||
|
||||
@@ -40,7 +40,11 @@ const FormatPicker = (properties: FormatPickerProps) => {
|
||||
onClick={handleClose}
|
||||
title={t("num_fmt.close")}
|
||||
tabIndex={0}
|
||||
onKeyDown={(event) => event.key === "Enter" && properties.onClose()}
|
||||
onKeyDown={(event) => {
|
||||
if (event.key === "Enter") {
|
||||
properties.onClose();
|
||||
}
|
||||
}}
|
||||
>
|
||||
<X />
|
||||
</Cross>
|
||||
|
||||
Reference in New Issue
Block a user