Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Commit 66eb0dd

Browse files
committed
Remove label element and id
1 parent 98db24f commit 66eb0dd

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

lib/Autocomplete.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -297,17 +297,8 @@ let Autocomplete = React.createClass({
297297
})
298298
}
299299

300-
let inputId = undefined;
301-
302-
if (typeof this.props.id !== 'undefined') {
303-
inputId = `${this.props.id}-input`;
304-
}
305-
306300
return (
307-
<div id={this.props.id} style={{display: 'inline-block'}}>
308-
<label htmlFor={inputId}>
309-
{this.props.labelText}
310-
</label>
301+
<div style={{display: 'inline-block'}}>
311302
<input
312303
{...this.props.inputProps}
313304
role="combobox"
@@ -320,7 +311,6 @@ let Autocomplete = React.createClass({
320311
onKeyUp={(event) => this.handleKeyUp(event)}
321312
onClick={this.handleInputClick}
322313
value={this.props.value}
323-
id={inputId}
324314
/>
325315
{this.state.isOpen && this.renderMenu()}
326316
{this.props.debug && (

0 commit comments

Comments
 (0)