Fixes checking an input type

This commit is contained in:
varjolintu 2018-02-28 11:28:09 +02:00
parent f1505b2dff
commit 2d160855ae

View file

@ -1446,7 +1446,7 @@ cip.fillInFromActiveElement = function(suppressWarnings, passOnly = false) {
cipFields.setUniqueId(jQuery(el));
const fieldId = cipFields.prepareId(jQuery(el).attr('data-cip-id'));
let combination = null;
if ($(el).toType === 'password') {
if ($(el).attr('type') === 'password') {
combination = cipFields.getCombination('password', fieldId);
}
else {
@ -1695,7 +1695,7 @@ cip.contextMenuRememberCredentials = function() {
cipFields.setUniqueId(jQuery(el));
const fieldId = cipFields.prepareId(jQuery(el).attr('data-cip-id'));
let combination = null;
if ($(el).toType === 'password') {
if ($(el).attr('type') === 'password') {
combination = cipFields.getCombination('password', fieldId);
}
else {