Fix autofill with empty custom field (#991)

This commit is contained in:
Joris 2019-08-12 13:13:06 +02:00 committed by Kyle Spearrin
parent 703474bd93
commit 55db185d6b
1 changed files with 1 additions and 1 deletions

View File

@ -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]);