Skip to content

Commit

Permalink
Disable autocomplete in the new task text field
Browse files Browse the repository at this point in the history
  • Loading branch information
dpashkevich committed Jul 4, 2020
1 parent 536121b commit b6da7e6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/new-task-form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ export const NewTaskForm = ({onCreate}) => {

return (
<Form onSubmit={onSubmit} submitButtonText="Add task">
<TextField isRequired name="newTask" placeholder="Enter new task" defaultValue={defaultValue} />
<TextField
isRequired
autoComplete="off"
name="newTask"
placeholder="Enter new task"
defaultValue={defaultValue}
/>
</Form>
)
}

0 comments on commit b6da7e6

Please sign in to comment.