Skip to content
Snippets Groups Projects
Commit 56b91ccd authored by Romeo Fragomeli's avatar Romeo Fragomeli Committed by Adrien Dieudonne
Browse files

[FIX] web: virtual keyboard is always showing during navigation

Before this commit, the search bar auto focus was already disable
on mobile based on media queries.
But "isMobile" equals false since we force the desktop mode.

To fix this, we use isMobileDevice which doesn't depend on the
resolution.

Task ID: 2090202
parent 78b9dad5
Branches
Tags
No related merge requests found
......@@ -185,7 +185,7 @@ var ControlPanelRenderer = Renderer.extend({
* @private
*/
_focusSearchInput: function () {
if (this.withSearchBar && !config.device.isMobile) {
if (this.withSearchBar && !config.device.isMobileDevice) {
// in mobile mode, we would rather not focus manually the
// input, because it opens up the integrated keyboard, which is
// not what you expect when you just selected a filter.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment