Skip to content
Snippets Groups Projects
Commit d8e95d5d authored by chris's avatar chris
Browse files

fix stop event

parent 65d7259e
No related branches found
No related tags found
1 merge request!458Hhmi accessibility
Showing
with 41 additions and 8 deletions
......@@ -23,7 +23,11 @@ export default class MultipleChoiceContainerNodeView extends QuestionsNodeView {
}
stopEvent(event) {
if (event.target.type === 'text') {
if (
!event.target.type ||
event.target.type === 'button' ||
event.target.type === 'text'
) {
return true;
}
const innerView = this.context.pmViews[this.node.attrs.id];
......
......@@ -23,7 +23,11 @@ export default class MultipleChoiceNodeView extends QuestionsNodeView {
}
stopEvent(event) {
if (event.target.type === 'textarea') {
if (
!event.target.type ||
event.target.type === 'button' ||
event.target.type === 'textarea'
) {
return true;
}
const innerView = this.context.pmViews[this.node.attrs.id];
......
......@@ -23,7 +23,11 @@ export default class MultipleChoiceSingleCorrectNodeView extends QuestionsNodeVi
}
stopEvent(event) {
if (event.target.type === 'textarea') {
if (
!event.target.type ||
event.target.type === 'button' ||
event.target.type === 'textarea'
) {
return true;
}
const innerView = this.context.pmViews[this.node.attrs.id];
......
......@@ -23,7 +23,11 @@ export default class QuestionMultipleSingleNodeView extends QuestionsNodeView {
}
stopEvent(event) {
if (event.target.type === 'text') {
if (
!event.target.type ||
event.target.type === 'button' ||
event.target.type === 'text'
) {
return true;
}
const innerView = this.context.pmViews[this.node.attrs.id];
......
......@@ -23,7 +23,11 @@ export default class TrueFalseContainerNodeView extends QuestionsNodeView {
}
stopEvent(event) {
if (event.target.type === 'text') {
if (
!event.target.type ||
event.target.type === 'button' ||
event.target.type === 'text'
) {
return true;
}
const innerView = this.context.pmViews[this.node.attrs.id];
......
......@@ -23,7 +23,11 @@ export default class TrueFalseNodeView extends QuestionsNodeView {
}
stopEvent(event) {
if (event.target.type === 'textarea') {
if (
!event.target.type ||
event.target.type === 'button' ||
event.target.type === 'textarea'
) {
return true;
}
const innerView = this.context.pmViews[this.node.attrs.id];
......
......@@ -23,7 +23,11 @@ export default class TrueFalseSingleCorrectContainerNodeView extends QuestionsNo
}
stopEvent(event) {
if (event.target.type === 'text') {
if (
!event.target.type ||
event.target.type === 'button' ||
event.target.type === 'text'
) {
return true;
}
const innerView = this.context.pmViews[this.node.attrs.id];
......
......@@ -23,7 +23,12 @@ export default class TrueFalseSingleCorrectNodeView extends QuestionsNodeView {
}
stopEvent(event) {
if (event.target.type === 'textarea') {
console.log(event.target.type);
if (
!event.target.type ||
event.target.type === 'button' ||
event.target.type === 'textarea'
) {
return true;
}
const innerView = this.context.pmViews[this.node.attrs.id];
......
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