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

How to add props such as autoComplete to the form? #1177

Closed
petercinibulk opened this issue Oct 15, 2022 · 2 comments
Closed

How to add props such as autoComplete to the form? #1177

petercinibulk opened this issue Oct 15, 2022 · 2 comments
Assignees
Labels
Type: Question Questions and other discussions

Comments

@petercinibulk
Copy link

I could not find any documention or issues relating to this so hopefully someone can answer this. BTW this library is amazing :)

I want to be able to do something like this with uniforms:

export default function App() {
  return (
    <div className="App">
      <form autoComplete="off">         <input type="text"/>
      </form>
    </div>
  );
}

Such as:

import React from 'react';
import { AutoForm } from 'uniforms-semantic';

import { bridge as schema } from './GuestSchema';

export function GuestFormBasic() {
  return <AutoForm schema={schema} onSubmit={console.log} autoComplete="off" />;
}

Is there a way to access the internal form tag?

Thanks!

@radekmie radekmie self-assigned this Oct 18, 2022
@radekmie radekmie added the Type: Question Questions and other discussions label Oct 18, 2022
@radekmie
Copy link
Contributor

Hi @petercinibulk! These should be passed properly, even if the types say otherwise.

@petercinibulk
Copy link
Author

Awesome thanks! I am using TS and ESLint so I had to configure it to allow this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question Questions and other discussions
Projects
Archived in project
Development

No branches or pull requests

2 participants