Skip to content

Commit b2ae225

Browse files
committed
CVT-87: prevent to focus voting buttons after modifying
1 parent 8d3800e commit b2ae225

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/renderer/components/wallet-detail/ProposalListItemDetail.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</div>
1111
<div class="btns" v-if="votable">
1212
<div v-if="voted">
13-
<button class="btn edit" @click="voted = false">{{$t('change my vote')}}</button>
13+
<button class="btn edit" @click="change">{{$t('change my vote')}}</button>
1414
</div>
1515
<div v-else>
1616
<button class="btn agree" @click="openPassphraseDialog('yes')">{{$t('agree')}}</button>
@@ -38,6 +38,10 @@
3838
};
3939
},
4040
methods: {
41+
change(evt) {
42+
this.voted = false;
43+
evt.target.blur();
44+
},
4145
openPassphraseDialog(answer) {
4246
this.answer = answer;
4347
this.$refs.passphraseDialog.open({

0 commit comments

Comments
 (0)