Skip to content

Commit

Permalink
fix: autocomplete directive (#56)
Browse files Browse the repository at this point in the history
* fix(form): disabled autocomplete, autocorrect, etc

This commit attempts to fix the forms in the application to no longer
provide autocomplete options.
  • Loading branch information
jniles authored and sfount committed Jan 3, 2017
1 parent 712c50d commit 46e7082
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/src/js/directives/bhFormDefaults.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
angular.module('bhima.directives')
.directive('bhFormDefaults', bhFormDefaults);
.directive('bhFormDefaults', bhFormDefaults);

/**
* @class bhFormDefaults
Expand All @@ -14,9 +14,9 @@ function bhFormDefaults() {
restrict: 'A',
require: 'form',
link: function bhFormDefaultsLinkFn($scope, $element, $attrs, $controller) {
$attrs.$set('autocomplete', 'none');
$attrs.$set('autocapitalize', 'none');
$attrs.$set('autocorrect', 'none');
$attrs.$set('autocomplete', 'nope');
$attrs.$set('autocapitalize', 'nope');
$attrs.$set('autocorrect', 'nope');
}
};
}

0 comments on commit 46e7082

Please sign in to comment.