[FIX] barcodes: don't listen to barcode in input number
related to rev 74fcd3ac3b
This commit is contained in:
@@ -220,7 +220,7 @@ var BarcodeEvents = core.Class.extend(mixins.PropertiesMixin, {
|
||||
* @param {jQuery.Event} e keydown event
|
||||
*/
|
||||
_listenBarcodeScanner: function (e) {
|
||||
if (!$('input:text:focus, textarea:focus, [contenteditable]:focus').length) {
|
||||
if (!$('input:text:focus, input[type=number]:focus, textarea:focus, [contenteditable]:focus').length) {
|
||||
$('body').append(this.$barcodeInput);
|
||||
this.$barcodeInput.focus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user