mirror of
https://github.com/bitwarden/web
synced 2025-12-11 22:03:21 +00:00
focus length input on change
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 0b0245b90f...d3a2dfe2e8
@@ -35,7 +35,7 @@
|
|||||||
<div class="form-group col-4">
|
<div class="form-group col-4">
|
||||||
<label for="length">{{'length' | i18n}}</label>
|
<label for="length">{{'length' | i18n}}</label>
|
||||||
<input id="length" class="form-control" type="number" min="5" max="128" [(ngModel)]="options.length"
|
<input id="length" class="form-control" type="number" min="5" max="128" [(ngModel)]="options.length"
|
||||||
(blur)="saveOptions()">
|
(blur)="saveOptions()" (change)="lengthChanged()">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-4">
|
<div class="form-group col-4">
|
||||||
<label for="min-number">{{'minNumbers' | i18n}}</label>
|
<label for="min-number">{{'minNumbers' | i18n}}</label>
|
||||||
|
|||||||
@@ -43,4 +43,8 @@ export class PasswordGeneratorComponent extends BasePasswordGeneratorComponent {
|
|||||||
this.modal = null;
|
this.modal = null;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lengthChanged() {
|
||||||
|
document.getElementById('length').focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user