mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-05-19 20:59:31 +08:00
🐛 fix(frontend): 修复 macOS Caps Lock 输入浮层
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
export const noAutoCapInputProps = {
|
||||
autoCapitalize: 'none' as const,
|
||||
autoCorrect: 'off' as const,
|
||||
spellCheck: false,
|
||||
};
|
||||
@@ -10,7 +9,9 @@ export const applyNoAutoCapAttributes = (element: Element) => {
|
||||
return;
|
||||
}
|
||||
|
||||
element.setAttribute('autocapitalize', 'none');
|
||||
if (typeof element.removeAttribute === 'function') {
|
||||
element.removeAttribute('autocapitalize');
|
||||
}
|
||||
element.setAttribute('autocorrect', 'off');
|
||||
element.setAttribute('spellcheck', 'false');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user