question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for input 'autocomplete' attribute?

See original GitHub issue

Prerequisites

Description

It looks like setting autocomplete attribute for inputs is not supported (without writing a custom component).

It would help to improve usability of forms. See for example a nice Google Developer post.

How to implement

I think it could be added like autofocus got added. Is this the best way to do it?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

9reactions
eberkundcommented, Jun 21, 2018

Yea this would be awesome and straightforward to add IMO.

I think the best approach would be allow something like this in the UI schema:

{
  "firstName": {
    "ui:autofocus": true,
    "ui:emptyValue": "",
    "ui:autocomplete": "fname"
  }
}
2reactions
epicfaacecommented, Mar 15, 2019

@levilian interested in making a PR for this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML attribute: autocomplete - MDN Web Docs
The HTML autocomplete attribute lets web developers specify what if any permission the user agent has to provide automated assistance in ...
Read more >
HTML input autocomplete Attribute - W3Schools
The autocomplete attribute specifies whether or not an input field should have autocomplete enabled. Autocomplete allows the browser to predict the value. When ......
Read more >
When To Use Input Autocomplete In HTML (And When List Or ...
The autocomplete attribute asks the browser to attempt autocompletion, based on user history. This is useful for personal details like name and email...
Read more >
autocomplete attribute: on & off values | Can I use... Support ...
The autocomplete attribute for input elements indicates to the browser whether a value should or should not be autofilled when appropriate. Usage %...
Read more >
Technique H98:Using HTML 5.2 autocomplete attributes - W3C
The autocomplete attribute allows the browser to do a pattern match against a list of values locally stored with the browser, and supplies...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found