fix(UI): row mark not applied on first click

This commit is contained in:
Fabio Di Stasio 2021-03-10 15:55:34 +01:00
parent b232a3bb5f
commit 25d72e3952
3 changed files with 2 additions and 4 deletions

View File

@ -245,8 +245,6 @@ export default {
const target = e.domEvent.target; const target = e.domEvent.target;
if (target.className.indexOf('ace_gutter-cell') === -1) if (target.className.indexOf('ace_gutter-cell') === -1)
return; return;
if (!this.editor.isFocused())
return;
if (e.clientX > 25 + target.getBoundingClientRect().left) if (e.clientX > 25 + target.getBoundingClientRect().left)
return; return;

View File

@ -118,7 +118,7 @@
<BaseLoader v-if="isLoading" /> <BaseLoader v-if="isLoading" />
<label class="form-label ml-2">{{ $t('message.schedulerBody') }}</label> <label class="form-label ml-2">{{ $t('message.schedulerBody') }}</label>
<QueryEditor <QueryEditor
v-if="isSelected" v-show="isSelected"
ref="queryEditor" ref="queryEditor"
:value.sync="localScheduler.sql" :value.sync="localScheduler.sql"
:workspace="workspace" :workspace="workspace"

View File

@ -99,7 +99,7 @@
<BaseLoader v-if="isLoading" /> <BaseLoader v-if="isLoading" />
<label class="form-label ml-2">{{ $t('message.triggerStatement') }}</label> <label class="form-label ml-2">{{ $t('message.triggerStatement') }}</label>
<QueryEditor <QueryEditor
v-if="isSelected" v-show="isSelected"
ref="queryEditor" ref="queryEditor"
:value.sync="localTrigger.sql" :value.sync="localTrigger.sql"
:workspace="workspace" :workspace="workspace"