verbatim with no autocomplete on PIN input

This commit is contained in:
Kyle Spearrin 2019-03-06 14:40:09 -05:00
parent aa290c50ec
commit 220c474992
1 changed files with 2 additions and 1 deletions

View File

@ -125,7 +125,8 @@ export class SettingsComponent implements OnInit {
checkboxText.appendChild(restartText);
label.innerHTML = '<input type="checkbox" id="master-pass-restart" checked>';
label.appendChild(checkboxText);
div.innerHTML = '<input type="text" class="swal-content__input" id="pin-val">';
div.innerHTML = '<input type="text" class="swal-content__input" id="pin-val" autocomplete="off" ' +
'autocapitalize="none" autocorrect="none" spellcheck="false" inputmode="verbatim">';
(div.querySelector('#pin-val') as HTMLInputElement).placeholder = this.i18nService.t('pin');
div.appendChild(label);