From f33efccc64c94232964230d5309d8837f53088e0 Mon Sep 17 00:00:00 2001 From: Francisco Salgueiro Date: Sun, 4 Feb 2024 19:34:32 +0000 Subject: [PATCH] fix clearable file input --- src/components/engines/EnginesPage.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/engines/EnginesPage.tsx b/src/components/engines/EnginesPage.tsx index 6a2c6b0e..94c9fea8 100644 --- a/src/components/engines/EnginesPage.tsx +++ b/src/components/engines/EnginesPage.tsx @@ -423,6 +423,11 @@ function EngineSettings({ if (!selected) return; setSetting(v.name, selected as string, v.default); }} + onChange={(e) => { + if (e === null) { + setSetting(v.name, null, v.default); + } + }} /> ); }