From 3456de1fb67508263b3c99fbc154a8d5de1b8ffb Mon Sep 17 00:00:00 2001 From: mrhard9090 <74858909+mrhard9090@users.noreply.github.com> Date: Thu, 24 Sep 2026 10:49:19 +0300 Subject: [PATCH] fix(rules): disable auto-capitalization in rule content input (#8042) * fix(rules): disable auto-capitalization in rule content input Co-Authored-By: Claude Opus 5.5 * fix(rules): pass input hints to the rule content input element --------- Co-authored-by: Claude Opus 5.5 Co-authored-by: wonfen --- Changelog.md | 4 ++++ src/components/profile/rules-editor-viewer.tsx | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/Changelog.md b/Changelog.md index 3aeaf3878..f088e7508 100644 --- a/Changelog.md +++ b/Changelog.md @@ -18,6 +18,10 @@ - 修复 Windows 服务因路径或目录权限问题无法启动时,缺少重新安装服务的提示 - 修复 Windows 服务回退检查失败后状态未更新、无法重新尝试 Sidecar 的问题 +**🍎 macOS** + +- macOS 修复编辑规则时「规则内容」输入的首字母被自动转为大写的问题 + **🐧 Linux** - Linux 修复安装或修复服务后仍无法启动内核、开启 TUN 模式的问题 diff --git a/src/components/profile/rules-editor-viewer.tsx b/src/components/profile/rules-editor-viewer.tsx index eccb59730..0c4756474 100644 --- a/src/components/profile/rules-editor-viewer.tsx +++ b/src/components/profile/rules-editor-viewer.tsx @@ -681,6 +681,13 @@ export const RulesEditorViewer = (props: Props) => { autoComplete="new-password" size="small" sx={{ minWidth: '240px' }} + slotProps={{ + htmlInput: { + autoCorrect: 'off', + autoCapitalize: 'off', + spellCheck: false, + }, + }} value={ruleContent} required={ruleType.required ?? true} error={(ruleType.required ?? true) && !ruleContent}