Skip to content

Commit

Permalink
feat: turn off autocomplete on forms
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCupela committed Oct 31, 2024
1 parent 28e3404 commit a74a39b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Dialog/FormDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const FormDialog = <
<div className={clsx('str-chat__dialog str-chat__dialog--form', className)}>
<div className='str-chat__dialog__body'>
{title && <div className='str-chat__dialog__title'>{title}</div>}
<form>
<form autoComplete='off'>
{Object.entries(fields).map(([id, fieldConfig]) => (
<div className='str-chat__dialog__field' key={`dialog-field-${id}`}>
{fieldConfig.label && (
Expand Down
2 changes: 1 addition & 1 deletion src/components/MessageInput/EditMessageForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const EditMessageForm = <
}, [clearEditingState]);

return (
<form className='str-chat__edit-message-form' onSubmit={handleSubmit}>
<form autoComplete='off' className='str-chat__edit-message-form' onSubmit={handleSubmit}>
<MessageInputFlat />
<div className='str-chat__edit-message-form-options'>
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const PollCreationDialog = ({ close }: PollCreationDialogProps) => {
>
<ModalHeader close={close} title={t<string>('Create poll')} />
<div className='str-chat__dialog__body'>
<form>
<form autoComplete='off'>
<div
className={clsx(
'str-chat__form__field str-chat__form__input-field str-chat__form__input-field--with-label',
Expand Down

0 comments on commit a74a39b

Please sign in to comment.