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

feat(bhFormDefaults): form defaults automatically #542

Merged
merged 1 commit into from
Jun 28, 2016

Conversation

jniles
Copy link
Collaborator

@jniles jniles commented Jun 28, 2016

This commit adds a new directive bhFormDefaults to automatically add attributes to any form element. These attributes are:

  1. autocomplete
  2. autocapitalize
  3. autocorrect

The directive turns them off by setting them to "none". If a browser updates in the future to ignore the "none" directive, they can easily be updated.

Closes #502.


Thank you for contributing!

Before submitting this pull request, please verify that you have:

  • Run your code through JSHint. Check out our styleguide.
  • Run integration tests.
  • Run end-to-end tests.
  • Accurately described the changes your are making in this pull request.

For a more detailed checklist, see the official review checklist that this PR will be evaluated against.

Ensuring that the above checkboxes are completed will help speed the review process and help build a stronger application. Thanks!

@jniles
Copy link
Collaborator Author

jniles commented Jun 28, 2016

@sfount, let's get #538 in before this lands. It'll be less painful for everyone involved.

This commit adds a new directive `bhFormDefaults` to automatically add
attributes to any form element.  These attributes are:
 1. `autocomplete`
 2. `autocapitalize`
 3. `autocorrect`

The directive turns them off by setting them to "none".  If a browser
updates in the future to ignore the "none" directive, they can easily be
updated.

Closes #502.
<div class="col-md-6">
{{ 0 | currency:currency.id }}
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@sfount
Copy link
Contributor

sfount commented Jun 28, 2016

LGTM! Cool use of a directive.

@sfount sfount merged commit 7441018 into Third-Culture-Software:master Jun 28, 2016
@sfount sfount mentioned this pull request Jun 28, 2016
4 tasks
@jniles jniles deleted the chore-bh-form-defaults branch June 28, 2016 15:24
@jniles jniles mentioned this pull request Jul 7, 2016
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.

2 participants