Commit c851b4cd authored by GuiΩ's avatar GuiΩ
Browse files

fix(QuestionList): open QuestionEditor on dblclick

parent 42566adf
......@@ -138,7 +138,7 @@ export default {
},
onQuestionDblClick(event) {
this.questionSel = [event.question_id];
this.$emit('question-edit', event)
},
changePosition() {
const indexSource = this.dropEvent.dataTransfer.getData('index');
......
......@@ -15,7 +15,7 @@
:src="('../static/thumbs/' + question.thumb_name)"
draggable
@click="onClick($event, question_id)"
@dblclick="onDblClick(question_id)"
@dblclick="onDblClick($event, question_id)"
@dragenter.prevent="onDragOver($event, index)"
@dragover.prevent
@dragleave.prevent="onDragLeave($event, index)"
......@@ -73,6 +73,7 @@ export default {
onDblClick(event, question_id){
clearTimeout(this.clickTimer);
this.nClick = 0;
event.question_id = question_id;
this.$emit('dblclick', event)
},
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment