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 <noreply@anthropic.com>

* fix(rules): pass input hints to the rule content input element

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: wonfen <eiwonfen@gmail.com>
This commit is contained in:
mrhard9090
2026-09-24 15:49:19 +08:00
committed by GitHub
co-authored by Claude Opus 5.5 wonfen
parent f9ef9d78cb
commit 3456de1fb6
2 changed files with 11 additions and 0 deletions
@@ -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}