Skip to content

Commit

Permalink
Disabling autocomplete in a couple annoying places
Browse files Browse the repository at this point in the history
  • Loading branch information
underbluewaters committed Dec 27, 2023
1 parent b31b0d1 commit 1c27179
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/client/src/admin/MutableAutosaveInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function MutableAutosaveInput(props: {
variables[props.propName] = debouncedValue;
mutation({
variables,
}).catch((e) => {});
}).catch((e) => { });
}
}, [
debouncedValue,
Expand Down
3 changes: 2 additions & 1 deletion packages/client/src/admin/ProjectAutosaveInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default function ProjectAutosaveInput(props: {
debouncedValue.length === 0 ? null : debouncedValue;
mutation({
variables,
}).catch((e) => {});
}).catch((e) => { });
}
}, [
debouncedValue,
Expand All @@ -62,6 +62,7 @@ export default function ProjectAutosaveInput(props: {
description={props.description}
onChange={setValue}
error={mutationStatus.error?.message}
autocomplete="off"
state={
mutationStatus.called
? mutationStatus.loading
Expand Down
3 changes: 2 additions & 1 deletion packages/client/src/admin/data/EditFolderModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default function EditFolderModal({
},
},
]}
onRequestClose={() => {}}
onRequestClose={() => { }}
title={createNew ? t("New Folder") : t("Edit Folder")}
initialFocus={nameRef}
>
Expand All @@ -144,6 +144,7 @@ export default function EditFolderModal({
<TextInput
autoFocus={true}
ref={nameRef}
autocomplete="off"
error={error ? error.message : undefined}
name="folder-name"
label={t("Name")}
Expand Down
12 changes: 7 additions & 5 deletions packages/client/src/admin/users/InviteUsersModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ export default function InviteUsersModal({
userDetails: state.multi
? state.userDetails
: [
{
email: state.email,
fullname: state.fullname,
},
],
{
email: state.email,
fullname: state.fullname,
},
],
},
// @ts-ignore
optimisticResponse: () => {
Expand Down Expand Up @@ -172,6 +172,7 @@ export default function InviteUsersModal({
<TextInput
ref={emailInput}
name="recipient"
autocomplete="off"
type="email"
label={t("Email")}
description={t(
Expand All @@ -191,6 +192,7 @@ export default function InviteUsersModal({
</div>
<div className="mb-4">
<TextInput
autocomplete="off"
name="fullname"
label={t("Full Name")}
description={t("Optionally provide the recipient's name.")}
Expand Down

0 comments on commit 1c27179

Please sign in to comment.