diff options
| author | Jairo Llopis <yajo.sk8@gmail.com> | 2019-04-17 12:22:14 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-10-02 18:41:01 +0000 |
| commit | 379f6410c18089dcac7e4e7323fd146f9d605b0b (patch) | |
| tree | f5fc76da0654889ceb2e9ea8b64ec01d98a9e253 /addons/barcodes/static/src | |
| parent | c780caae5099bc9227a0c6559d01bba3a5ce0f48 (diff) | |
[FIX] barcodes: Whitelist search inputs
Before this patch, on mobile chrome, if user had focused in a `<input type=search>` element and writes something, the value never lands in the target input element and the on-screen keyboard hides.
closes odoo/odoo#37843
X-original-commit: 12d4040b7196ae8f7a27d0081638413b52340019
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/barcodes/static/src')
| -rw-r--r-- | addons/barcodes/static/src/js/barcode_events.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/barcodes/static/src/js/barcode_events.js b/addons/barcodes/static/src/js/barcode_events.js index 3f38ea38e37..5fcd68ac680 100644 --- a/addons/barcodes/static/src/js/barcode_events.js +++ b/addons/barcodes/static/src/js/barcode_events.js @@ -219,7 +219,7 @@ var BarcodeEvents = core.Class.extend(mixins.PropertiesMixin, { */ _listenBarcodeScanner: function (e) { if ($(document.activeElement).not('input:text, textarea, [contenteditable], ' + - '[type="email"], [type="number"], [type="password"], [type="tel"]').length) { + '[type="email"], [type="number"], [type="password"], [type="tel"], [type="search"]').length) { $('body').append(this.$barcodeInput); this.$barcodeInput.focus(); } |
