Skip to content
Snippets Groups Projects
Commit b2c89633 authored by Adrien Dieudonne's avatar Adrien Dieudonne
Browse files

Revert "[FIX] barcodes: let focus in number, password, tel, phone inputs"


This reverts commit 1cdf2bda.
$(':focus') seems not working depending on browser version but
we don't know yet exactly why.

opw-1948266

closes odoo/odoo#31807

Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
parent 6b676f62
Branches
Tags
No related merge requests found
......@@ -220,8 +220,7 @@ var BarcodeEvents = core.Class.extend(mixins.PropertiesMixin, {
* @param {jQuery.Event} e keydown event
*/
_listenBarcodeScanner: function (e) {
if ($(':focus').not('input:text, textarea, [contenteditable], ' +
'[type="email"], [type="number"], [type="password"], [type="tel"]')) {
if (!$('input:text:focus, textarea:focus, [contenteditable]:focus').length) {
$('body').append(this.$barcodeInput);
this.$barcodeInput.focus();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment