From 9a85b28b1827ac72038d9e5629bc4b54494f82bc Mon Sep 17 00:00:00 2001
From: GyDi <segydi@foxmail.com>
Date: Mon, 20 Dec 2021 00:36:50 +0800
Subject: [PATCH] fix: port value not rerender

---
 src/components/setting-clash.tsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/components/setting-clash.tsx b/src/components/setting-clash.tsx
index 9fa9b32..7d4f712 100644
--- a/src/components/setting-clash.tsx
+++ b/src/components/setting-clash.tsx
@@ -92,7 +92,12 @@ const SettingClash = ({ onError }: Props) => {
 
       <SettingItem>
         <ListItemText primary="混合代理端口" />
-        <TextField size="small" defaultValue={mixedPort!} sx={{ width: 120 }} />
+        <TextField
+          size="small"
+          value={mixedPort!}
+          sx={{ width: 120 }}
+          disabled
+        />
       </SettingItem>
     </List>
   );
-- 
GitLab