[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
This commit is contained in:
Romeo Fragomeli
2019-10-18 12:59:48 +00:00
committed by Adrien Dieudonne
parent 78b9dad560
commit 56b91ccdc0
@@ -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.