Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"A form field element has neither an id nor a name attribute" #6345

Open
1 task done
carlosalvidrez opened this issue Sep 3, 2024 · 1 comment
Open
1 task done
Labels
triage Issues to be categorized by the team

Comments

@carlosalvidrez
Copy link

🐛 Current behavior

Getting this client-side warning, hundreds of times:

"A form field element has neither an id nor a name attribute. This might prevent the browser from correctly autofilling the form.
To fix this issue, add a unique id or name attribute to a form field. This is not strictly needed, but still recommended even if you have an autocomplete attribute on the same element."

🔍 Steps to reproduce

React InstantSearch... tried adding an "id" and "name"" attribute to SearchBox, for example, but it does not pass it as an HTML attribute to the "input" node.

Live reproduction

none

💭 Expected behavior

Both id and name attributes should be passed from the SearchBox and RefinementList elements to the actually rendered node. Or, add some automatically.

Package version

react-instantsearch latest

Operating system

macOS 14.6.1

Browser

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@carlosalvidrez carlosalvidrez added the triage Issues to be categorized by the team label Sep 3, 2024
@Sid-80
Copy link

Sid-80 commented Sep 6, 2024

I am open source contributor from India willing to work on this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Issues to be categorized by the team
Projects
None yet
Development

No branches or pull requests

2 participants