mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 17:23:37 +00:00
@@ -1,4 +1,5 @@
|
|||||||
import { CipherType } from '../enums/cipherType.enum';
|
import { CipherType } from '../enums/cipherType.enum';
|
||||||
|
import { FieldType } from '../enums/fieldType.enum';
|
||||||
|
|
||||||
import AutofillField from '../models/domain/autofillField';
|
import AutofillField from '../models/domain/autofillField';
|
||||||
import AutofillPageDetails from '../models/domain/autofillPageDetails';
|
import AutofillPageDetails from '../models/domain/autofillPageDetails';
|
||||||
@@ -263,9 +264,14 @@ export default class AutofillService {
|
|||||||
|
|
||||||
const matchingIndex = this.findMatchingFieldIndex(field, fieldNames);
|
const matchingIndex = this.findMatchingFieldIndex(field, fieldNames);
|
||||||
if (matchingIndex > -1) {
|
if (matchingIndex > -1) {
|
||||||
|
let val = fields[matchingIndex].value;
|
||||||
|
if (val == null && fields[matchingIndex].type == FieldType.Boolean) {
|
||||||
|
val = 'false';
|
||||||
|
}
|
||||||
|
|
||||||
filledFields[field.opid] = field;
|
filledFields[field.opid] = field;
|
||||||
fillScript.script.push(['click_on_opid', field.opid]);
|
fillScript.script.push(['click_on_opid', field.opid]);
|
||||||
fillScript.script.push(['fill_by_opid', field.opid, fields[matchingIndex].value]);
|
fillScript.script.push(['fill_by_opid', field.opid, val]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user