Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 09275dc

Browse files
author
vikasrohit
committed
SUP-2796, Persistently show password checkbox on mobile
-- Removed ng-show to always show the checkbox
1 parent f514f2e commit 09275dc

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

app/directives/account/toggle-password/toggle-password.directive.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
});
2828

2929
vm.onCPFocus = function(event) {
30-
vm.currentPasswordFocus = true;
3130
vm.currentPasswordPlaceholder = '';
3231
element.addClass('focus');
3332
}
@@ -38,12 +37,9 @@
3837

3938
// If you are blurring from the password input and clicking the checkbox
4039
if (relatedTarget.attr('type') === 'checkbox' && relatedTarget.attr('id') === 'currentPasswordCheckbox') {
41-
vm.currentPasswordFocus = true;
4240
vm.currentPasswordPlaceholder = '';
4341
currentPasswordInput.focus();
4442
} else {
45-
// If you are blurring from the password input and clicking anywhere but the checkbox
46-
vm.currentPasswordFocus = false;
4743

4844
if (vm.currentPassword === '' || vm.currentPassword === undefined) {
4945
vm.currentPasswordPlaceholder = vm.currentPasswordDefaultPlaceholder;

app/directives/account/toggle-password/toggle-password.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ input#current-password-input(
1111

1212
required)
1313

14-
label(ng-show="vm.currentPasswordFocus || vm.currentPasswordField.$dirty") #[input(type="checkbox", id="currentPasswordCheckbox", ng-model="focusOnCurrentPasswordInput", ng-change="vm.toggleTypeAttribute()")] Show
14+
label #[input(type="checkbox", id="currentPasswordCheckbox", ng-model="focusOnCurrentPasswordInput", ng-change="vm.toggleTypeAttribute()")] Show

0 commit comments

Comments
 (0)