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

Commit 8268d25

Browse files
committed
remove busted aria-label
1 parent 5a2e764 commit 8268d25

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

lib/Autocomplete.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -270,19 +270,6 @@ let Autocomplete = React.createClass({
270270
return React.cloneElement(menu, { ref: 'menu' })
271271
},
272272

273-
getActiveItemValue () {
274-
if (this.state.highlightedIndex === null)
275-
return ''
276-
else {
277-
var item = this.props.items[this.state.highlightedIndex]
278-
// items can match when we maybeAutoCompleteText, but then get replaced by the app
279-
// for the next render? I think? TODO: file an issue (alab -> enter -> type 'a' for
280-
// alabamaa and then an error would happen w/o this guard, pretty sure there's a
281-
// better way)
282-
return item ? this.props.getItemValue(item) : ''
283-
}
284-
},
285-
286273
handleInputBlur () {
287274
if (this._ignoreBlur)
288275
return
@@ -316,7 +303,6 @@ let Autocomplete = React.createClass({
316303
{...this.props.inputProps}
317304
role="combobox"
318305
aria-autocomplete="both"
319-
aria-label={this.getActiveItemValue()}
320306
ref="input"
321307
onFocus={this.handleInputFocus}
322308
onBlur={this.handleInputBlur}

0 commit comments

Comments
 (0)