Merge pull request #2029 from influxdata/fix/input-id-unnecessary

Remove id prop from input component
pull/10616/head
Palakp41 2018-12-18 14:59:00 -08:00 committed by GitHub
commit 1e7cadc9b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 0 additions and 11 deletions

View File

@ -53,7 +53,6 @@ interface Props {
class Input extends Component<Props> {
public static defaultProps: Partial<Props> = {
id: '',
name: '',
value: '',
placeholder: '',

View File

@ -93,7 +93,6 @@ exports[`Account rendering renders! 1`] = `
autocomplete="off"
dataTest="nameInput"
disabledTitleText="This input is disabled"
id=""
name=""
onChange={[Function]}
placeholder=""
@ -117,7 +116,6 @@ exports[`Account rendering renders! 1`] = `
className="input-field"
data-test="nameInput"
disabled={true}
id=""
name=""
onChange={[Function]}
placeholder=""

View File

@ -16,7 +16,6 @@ exports[`Account rendering renders! 1`] = `
autoFocus={false}
autocomplete="off"
disabledTitleText="This input is disabled"
id=""
name=""
onChange={[Function]}
placeholder="Filter tokens by column"
@ -40,7 +39,6 @@ exports[`Account rendering renders! 1`] = `
autoFocus={false}
className="input-field"
disabled={false}
id=""
name=""
onChange={[Function]}
placeholder="Filter tokens by column"

View File

@ -29,7 +29,6 @@ exports[`Onboarding.Components.AdminStep renders 1`] = `
autocomplete="off"
disabledTitleText="Admin username has been set"
icon="checkmark"
id=""
name=""
onChange={[Function]}
placeholder=""
@ -52,7 +51,6 @@ exports[`Onboarding.Components.AdminStep renders 1`] = `
autocomplete="off"
disabledTitleText="Admin password has been set"
icon="checkmark"
id=""
name=""
onChange={[Function]}
placeholder=""
@ -75,7 +73,6 @@ exports[`Onboarding.Components.AdminStep renders 1`] = `
autocomplete="off"
disabledTitleText="Admin password has been set"
icon="checkmark"
id=""
name=""
onChange={[Function]}
placeholder=""
@ -99,7 +96,6 @@ exports[`Onboarding.Components.AdminStep renders 1`] = `
autocomplete="off"
disabledTitleText="Default organization name has been set"
icon="checkmark"
id=""
name=""
onChange={[Function]}
placeholder="Your organization is where everything you create lives"
@ -122,7 +118,6 @@ exports[`Onboarding.Components.AdminStep renders 1`] = `
autocomplete="off"
disabledTitleText="Default bucket name has been set"
icon="checkmark"
id=""
name=""
onChange={[Function]}
placeholder="Your bucket is where you will store all your data"

View File

@ -56,7 +56,6 @@ class MultipleInput extends PureComponent<Props, State> {
<Input
placeholder={`Type and hit 'Enter' to add to list of ${title}`}
autocomplete={AutoComplete.Off}
id={this.id}
type={InputType.Text}
onKeyDown={this.handleKeyDown}
autoFocus={autoFocus || false}