fix: disable spell check

This commit is contained in:
GyDi 2022-09-28 14:15:22 +08:00 committed by GitHub
parent a916d88e85
commit 6c6b40548f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View File

@ -44,12 +44,12 @@ const ConnectionsPage = () => {
const filterConn = useMemo(() => {
const orderFunc = orderOpts[curOrderOpt];
const connetions = connData.connections.filter((conn) =>
const connections = connData.connections.filter((conn) =>
(conn.metadata.host || conn.metadata.destinationIP)?.includes(filterText)
);
if (orderFunc) return orderFunc(connetions);
return connetions;
if (orderFunc) return orderFunc(connections);
return connections;
}, [connData, filterText, curOrderOpt]);
useEffect(() => {
@ -167,6 +167,7 @@ const ConnectionsPage = () => {
fullWidth
size="small"
autoComplete="off"
spellCheck="false"
variant="outlined"
placeholder={t("Filter conditions")}
value={filterText}

View File

@ -93,6 +93,7 @@ const LogPage = () => {
fullWidth
size="small"
autoComplete="off"
spellCheck="false"
variant="outlined"
placeholder={t("Filter conditions")}
value={filterText}

View File

@ -149,6 +149,7 @@ const ProfilePage = () => {
value={url}
variant="outlined"
autoComplete="off"
spellCheck="false"
onChange={(e) => setUrl(e.target.value)}
sx={{ input: { py: 0.65, px: 1.25 } }}
placeholder={t("Profile URL")}

View File

@ -37,6 +37,7 @@ const RulesPage = () => {
size="small"
autoComplete="off"
variant="outlined"
spellCheck="false"
placeholder={t("Filter conditions")}
value={filterText}
onChange={(e) => setFilterText(e.target.value)}