ui icon indicating copy to clipboard operation
ui copied to clipboard

autocomplete issues with react-form-hooks

Open djstein opened this issue 2 years ago • 1 comments

after switching over to the the react-form-hooks based inputs from https://ui.shadcn.com/docs/forms/react-hook-form I have noticed that autocomplete for anything except username and password is not working. based on the MDN doc: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete I am unable to determine what is missing for it to activate.

Note: In order to provide autocompletion, user-agents might require <input>\<select>\<textarea> elements to:

  1. Have a name and/or id attribute

  2. Be descendants of a <form> element

  3. The form to have a submit button

any thoughts on this?

djstein avatar May 24 '23 23:05 djstein

Hm, React Hook Form doesn't do anything regarding the autocomplete functionally except potentially pass down your field name as a name prop. Additionally, the underling Input component is the same shadcn/ui Input

Moshyfawn avatar May 25 '23 01:05 Moshyfawn

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.

shadcn avatar Jun 30 '24 23:06 shadcn