Skip to content

Commit

Permalink
fix(Tag): handle autoComplete prop
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxuoz committed Oct 24, 2018
1 parent aa5150d commit 91c3632
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common/Tag/Tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type TagProps = {|
|};

const COLLECTED_PROPS = [
'autoComplete',
'checked',
'children',
'className',
Expand Down
43 changes: 43 additions & 0 deletions storybook/__tests__/__snapshots__/storyshots.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3820,6 +3820,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form with form error 1`] = `
className="emotion-12 emotion-1"
>
<input
autoComplete="off"
className="emotion-10 emotion-1"
disabled={undefined}
name="curple"
Expand Down Expand Up @@ -3848,6 +3849,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form with form error 1`] = `
className="emotion-12 emotion-1"
>
<input
autoComplete="off"
className="emotion-10 emotion-1"
disabled={undefined}
name="provect"
Expand Down Expand Up @@ -3876,6 +3878,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form with form error 1`] = `
className="emotion-12 emotion-1"
>
<input
autoComplete="off"
className="emotion-10 emotion-1"
disabled={undefined}
name="inlaying"
Expand Down Expand Up @@ -3904,6 +3907,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form with form error 1`] = `
className="emotion-12 emotion-1"
>
<input
autoComplete="off"
className="emotion-10 emotion-1"
disabled={undefined}
name="saccharifier"
Expand Down Expand Up @@ -3932,6 +3936,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form with form error 1`] = `
className="emotion-12 emotion-1"
>
<input
autoComplete="off"
className="emotion-10 emotion-1"
disabled={undefined}
name="inertance"
Expand Down Expand Up @@ -4128,6 +4133,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form with form error is null 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="curple"
Expand Down Expand Up @@ -4156,6 +4162,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form with form error is null 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="provect"
Expand Down Expand Up @@ -4184,6 +4191,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form with form error is null 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="inlaying"
Expand Down Expand Up @@ -4212,6 +4220,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form with form error is null 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="saccharifier"
Expand Down Expand Up @@ -4240,6 +4249,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form with form error is null 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="inertance"
Expand Down Expand Up @@ -4477,6 +4487,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form with groups 1`] = `
className="emotion-6 emotion-1"
>
<input
autoComplete="off"
className="emotion-4 emotion-1"
disabled={undefined}
name="curple"
Expand Down Expand Up @@ -4505,6 +4516,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form with groups 1`] = `
className="emotion-6 emotion-1"
>
<input
autoComplete="off"
className="emotion-4 emotion-1"
disabled={undefined}
name="provect"
Expand Down Expand Up @@ -4533,6 +4545,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form with groups 1`] = `
className="emotion-6 emotion-1"
>
<input
autoComplete="off"
className="emotion-4 emotion-1"
disabled={undefined}
name="inlaying"
Expand Down Expand Up @@ -4574,6 +4587,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form with groups 1`] = `
className="emotion-6 emotion-1"
>
<input
autoComplete="off"
className="emotion-4 emotion-1"
disabled={undefined}
name="saccharifier"
Expand Down Expand Up @@ -4602,6 +4616,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form with groups 1`] = `
className="emotion-6 emotion-1"
>
<input
autoComplete="off"
className="emotion-4 emotion-1"
disabled={undefined}
name="inertance"
Expand Down Expand Up @@ -4768,6 +4783,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form without groups 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="curple"
Expand Down Expand Up @@ -4796,6 +4812,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form without groups 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="provect"
Expand Down Expand Up @@ -4824,6 +4841,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form without groups 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="inlaying"
Expand Down Expand Up @@ -4852,6 +4870,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form without groups 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="saccharifier"
Expand Down Expand Up @@ -4880,6 +4899,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Form without groups 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="inertance"
Expand Down Expand Up @@ -4963,6 +4983,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Input with center align 1`] = `
className="emotion-2 emotion-1"
>
<input
autoComplete="off"
className="emotion-0 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -5055,6 +5076,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Input with error 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-0 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -5137,6 +5159,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Input with html auto-complete 1`] = `
className="emotion-2 emotion-1"
>
<input
autoComplete="on"
className="emotion-0 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -5235,6 +5258,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Input with left icon 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-0 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -5319,6 +5343,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Input with placeholder 1`] = `
className="emotion-2 emotion-1"
>
<input
autoComplete="off"
className="emotion-0 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -5417,6 +5442,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Input with right icon 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-0 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -5521,6 +5547,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Input with right icon and error 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-0 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -5606,6 +5633,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Input with square=true 1`] = `
className="emotion-2 emotion-1"
>
<input
autoComplete="off"
className="emotion-0 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -5685,6 +5713,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Input with stretch=false 1`] = `
className="emotion-2 emotion-1"
>
<input
autoComplete="off"
className="emotion-0 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -5764,6 +5793,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Input with value 1`] = `
className="emotion-2 emotion-1"
>
<input
autoComplete="off"
className="emotion-0 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -5843,6 +5873,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/Input without value 1`] = `
className="emotion-2 emotion-1"
>
<input
autoComplete="off"
className="emotion-0 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -5952,6 +5983,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/InputField with center align 1`] = `
className="emotion-2 emotion-1"
>
<input
autoComplete="off"
className="emotion-0 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -6104,6 +6136,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/InputField with error 1`] = `
className="emotion-6 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -6268,6 +6301,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/InputField with error and row direction 1`]
className="emotion-6 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -6403,6 +6437,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/InputField with placeholder 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -6526,6 +6561,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/InputField with row direction 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -6649,6 +6685,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/InputField with row direction and stretch=f
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -6773,6 +6810,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/InputField with square input 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -6896,6 +6934,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/InputField with stretch 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -7019,6 +7058,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/InputField with value 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -7131,6 +7171,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/InputField without error label and indicato
className="emotion-2 emotion-1"
>
<input
autoComplete="off"
className="emotion-0 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -7242,6 +7283,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/InputField without label 1`] = `
className="emotion-2 emotion-1"
>
<input
autoComplete="off"
className="emotion-0 emotion-1"
disabled={undefined}
name="input"
Expand Down Expand Up @@ -7365,6 +7407,7 @@ exports[`Storyshots ATOMS/DATA ENTRY/InputField without value 1`] = `
className="emotion-4 emotion-1"
>
<input
autoComplete="off"
className="emotion-2 emotion-1"
disabled={undefined}
name="input"
Expand Down

0 comments on commit 91c3632

Please sign in to comment.