mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-14 01:01:31 +01:00
Fix autofill with empty custom field (#991)
This commit is contained in:
parent
703474bd93
commit
55db185d6b
@ -1067,7 +1067,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||
}
|
||||
|
||||
private fillByOpid(fillScript: AutofillScript, field: AutofillField, value: string): void {
|
||||
if (field.maxLength && value.length > field.maxLength) {
|
||||
if (field.maxLength && value && value.length > field.maxLength) {
|
||||
value = value.substr(0, value.length);
|
||||
}
|
||||
fillScript.script.push(['click_on_opid', field.opid]);
|
||||
|
Loading…
Reference in New Issue
Block a user