Reach-ui: Disabling browser autocomplete with autocomplete="off"

Created on 16 Jun 2019  路  3Comments  路  Source: reach/reach-ui

Feature request
Current behavior:

<ComboboxInput autocomplete={false}/>

this in only determines if the value in the input changes or not as the user navigates with the keyboard. this prop can be renamed

Request:

<Combobox autocomplete="off "/>

the native autocomplete for an input element, to be able to disable the annoying browser autocomplete/suggesstion.

Most helpful comment

Shouldn't autoComplete be off by default since the whole point of this component is it supplies a suggestions UI replacing the default one if any?

All 3 comments

@CodebyOmar you can add that dom attribute with
<ComboboxInput autoComplete="off" />
The component prop is 'autocomplete'
The input dom attribute is 'autoComplete'

Wow! I totally missed that. Thank you. @ryanflorence i'm closing this issue

Shouldn't autoComplete be off by default since the whole point of this component is it supplies a suggestions UI replacing the default one if any?

Was this page helpful?
0 / 5 - 0 ratings