Skip to content
Snippets Groups Projects
Commit a199c6a6 authored by Vukile Langa's avatar Vukile Langa
Browse files

fix(services): allow image alt text to be edited

parent 47e04036
No related branches found
No related tags found
1 merge request!624Fix "Trying to insert alt-text overwrites the caption"
......@@ -26,6 +26,7 @@ export default class MultipleChoiceNodeView extends QuestionsNodeView {
if (
!event.target.type ||
event.target.type === 'button' ||
event.target.type === 'text' ||
event.target.type === 'textarea'
) {
return true;
......
......@@ -26,6 +26,7 @@ export default class MultipleChoiceSingleCorrectNodeView extends QuestionsNodeVi
if (
!event.target.type ||
event.target.type === 'button' ||
event.target.type === 'text' ||
event.target.type === 'textarea'
) {
return true;
......
......@@ -23,7 +23,12 @@ export default class QuestionTrueFalseNodeView extends QuestionsNodeView {
}
stopEvent(event) {
if (event.target.type === 'textarea') {
if (
!event.target.type ||
event.target.type === 'button' ||
event.target.type === 'text' ||
event.target.type === 'textarea'
) {
return true;
}
const innerView = this.context.pmViews[this.node.attrs.id];
......
......@@ -26,6 +26,7 @@ export default class TrueFalseNodeView extends QuestionsNodeView {
if (
!event.target.type ||
event.target.type === 'button' ||
event.target.type === 'text' ||
event.target.type === 'textarea'
) {
return true;
......
......@@ -23,7 +23,12 @@ export default class QuestionTrueFalseSingleNodeView extends QuestionsNodeView {
}
stopEvent(event) {
if (event.target.type === 'textarea') {
if (
!event.target.type ||
event.target.type === 'button' ||
event.target.type === 'text' ||
event.target.type === 'textarea'
) {
return true;
}
const innerView = this.context.pmViews[this.node.attrs.id];
......
......@@ -26,6 +26,7 @@ export default class TrueFalseSingleCorrectNodeView extends QuestionsNodeView {
if (
!event.target.type ||
event.target.type === 'button' ||
event.target.type === 'text' ||
event.target.type === 'textarea'
) {
return true;
......
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