fix: add missing HTML id attributes (#9563)
Refs #9523 Co-authored-by: Reges Mendes <reges.mendes@gmail.com>
This commit is contained in:
@@ -42,7 +42,7 @@ export default class Schemes extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<label htmlFor="schemes">
|
<label htmlFor="schemes">
|
||||||
<span className="schemes-title">Schemes</span>
|
<span className="schemes-title">Schemes</span>
|
||||||
<select onChange={ this.onChange } value={currentScheme}>
|
<select onChange={ this.onChange } value={currentScheme} id="schemes">
|
||||||
{ schemes.valueSeq().map(
|
{ schemes.valueSeq().map(
|
||||||
( scheme ) => <option value={ scheme } key={ scheme }>{ scheme }</option>
|
( scheme ) => <option value={ scheme } key={ scheme }>{ scheme }</option>
|
||||||
).toArray()}
|
).toArray()}
|
||||||
|
|||||||
@@ -72,7 +72,11 @@ const Servers = ({
|
|||||||
return (
|
return (
|
||||||
<div className="servers">
|
<div className="servers">
|
||||||
<label htmlFor="servers">
|
<label htmlFor="servers">
|
||||||
<select onChange={handleServerChange} value={currentServer}>
|
<select
|
||||||
|
onChange={handleServerChange}
|
||||||
|
value={currentServer}
|
||||||
|
id="servers"
|
||||||
|
>
|
||||||
{servers
|
{servers
|
||||||
.valueSeq()
|
.valueSeq()
|
||||||
.map((server) => (
|
.map((server) => (
|
||||||
|
|||||||
@@ -141,7 +141,16 @@ class TopBar extends React.Component {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
formOnSubmit = this.downloadUrl
|
formOnSubmit = this.downloadUrl
|
||||||
control.push(<input className={classNames.join(" ")} type="text" onChange={ this.onUrlChange } value={this.state.url} disabled={isLoading} />)
|
control.push(
|
||||||
|
<input
|
||||||
|
className={classNames.join(" ")}
|
||||||
|
type="text"
|
||||||
|
onChange={this.onUrlChange}
|
||||||
|
value={this.state.url}
|
||||||
|
disabled={isLoading}
|
||||||
|
id="download-url-input"
|
||||||
|
/>
|
||||||
|
)
|
||||||
control.push(<Button className="download-url-button" onClick={ this.downloadUrl }>Explore</Button>)
|
control.push(<Button className="download-url-button" onClick={ this.downloadUrl }>Explore</Button>)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user