select 2 never autocomplete

This commit is contained in:
Daniel Barbero Martin 2022-01-26 09:14:19 +01:00
parent 9f01029520
commit 7b956d3ca1

View File

@ -994,6 +994,12 @@ function html_print_select(
}';
}
// Hack for not autocomplete never select2 browser.
$output .= '$(document).on("focus", ":input", function(){
$(this).attr("autocomplete", "new-password");
});';
$output .= '$("input.select2-input").attr("autocomplete", "new-password");';
$output .= '</script>';
}