Merge pull request #2029 from influxdata/fix/input-id-unnecessary
Remove id prop from input componentpull/10616/head
commit
1e7cadc9b9
|
@ -53,7 +53,6 @@ interface Props {
|
|||
|
||||
class Input extends Component<Props> {
|
||||
public static defaultProps: Partial<Props> = {
|
||||
id: '',
|
||||
name: '',
|
||||
value: '',
|
||||
placeholder: '',
|
||||
|
|
|
@ -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=""
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue