Skip to content

Commit

Permalink
fix: invalid DOM property autocomplete
Browse files Browse the repository at this point in the history
When using the DateTimeInput component, there is an error in the console
stating that the autocomplete property is an invalid DOM property.

Changed autocomplete to autoComplete conform HTML standards.
  • Loading branch information
Gido Manders committed Apr 23, 2021
1 parent 5881031 commit 54c5dd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/form/DateTimeInput/DateTimeInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export default function DateTimeInput(props: Props) {
placeholder,
invalid: valid === false || hasFormatError,
id,
autocomplete: 'off'
autoComplete: 'off'
}}
open={mode === 'modal' ? false : undefined}
renderInput={(props) =>
Expand Down
10 changes: 5 additions & 5 deletions src/form/DateTimeInput/__snapshots__/DateTimeInput.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ exports[`Component: DateTimeInput ui with date picker in modal: Component: DateT
input={true}
inputProps={
Object {
"autocomplete": "off",
"autoComplete": "off",
"id": "dateOfBirth",
"invalid": false,
"mask": Array [
Expand Down Expand Up @@ -153,7 +153,7 @@ exports[`Component: DateTimeInput ui with date picker in modal: Component: DateT
input={true}
inputProps={
Object {
"autocomplete": "off",
"autoComplete": "off",
"id": "dateOfBirth",
"invalid": false,
"mask": Array [
Expand Down Expand Up @@ -250,7 +250,7 @@ exports[`Component: DateTimeInput ui with format error: Component: DateTimeInput
input={true}
inputProps={
Object {
"autocomplete": "off",
"autoComplete": "off",
"id": "dateOfBirth",
"invalid": true,
"mask": Array [
Expand Down Expand Up @@ -336,7 +336,7 @@ exports[`Component: DateTimeInput ui with label: Component: DateTimeInput => ui
input={true}
inputProps={
Object {
"autocomplete": "off",
"autoComplete": "off",
"id": "dateOfBirth",
"invalid": false,
"mask": Array [
Expand Down Expand Up @@ -399,7 +399,7 @@ exports[`Component: DateTimeInput ui without label: Component: DateTimeInput =>
input={true}
inputProps={
Object {
"autocomplete": "off",
"autoComplete": "off",
"id": "dateOfBirth",
"invalid": false,
"mask": Array [
Expand Down

0 comments on commit 54c5dd5

Please sign in to comment.