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

Introduce Form autoComplete attribute and deprecate autocomplete #1483

Conversation

lukaszzdanikowski
Copy link
Contributor

@lukaszzdanikowski lukaszzdanikowski commented Oct 16, 2019

Reasons for making this change

We should rename the autocomplete attribute on <Form> to autoComplete. This is because that's how React does it on the actual <form> element, so it will be a more familiar attribute name for React developers.

If this is related to existing tickets, include links to them as well.
fixes #1156

Checklist

  • I'm updating documentation
  • I'm adding or updating code
    • I've added and/or updated tests
    • I've updated docs if needed
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature

console.warn(
"Using autocomplete property of Form is deprecated, use autoComplete instead."
);
if (currentAutoComplete) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Thanks for the deprecation check. I don't think we need this check to see if both autocomplete and autoComplete are set (because the user will already get the autocomplete deprecation warning from before), so you can probably remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, removed :-)

@epicfaace epicfaace merged commit 13ceea7 into rjsf-team:master Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename autocomplete to autoComplete
2 participants