From b02c7be9c85b240eb4e91bd288a08a3120348b0c Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 16 Mar 2022 11:58:31 +0300 Subject: [PATCH] Fix focus in open dialog --- apps/common/main/lib/view/OpenDialog.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/common/main/lib/view/OpenDialog.js b/apps/common/main/lib/view/OpenDialog.js index 1a1681619..fff4bba47 100644 --- a/apps/common/main/lib/view/OpenDialog.js +++ b/apps/common/main/lib/view/OpenDialog.js @@ -521,7 +521,9 @@ define([ onCmbDelimiterSelect: function(combo, record){ this.inputDelimiter.setVisible(record.value == -1); - (record.value == -1) && this.inputDelimiter.cmpEl.find('input').focus(); + var me = this; + if (record.value == -1) + setTimeout(function(){me.inputDelimiter.focus();}, 10); if (this.preview) this.updatePreview(); },