Skip to content

Commit

Permalink
✨ Fix issue (#3637)
Browse files Browse the repository at this point in the history
  • Loading branch information
damianpumar authored Aug 28, 2023
1 parent bc743f5 commit 605ebb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
v-required-field="{ show: question.isRequired, color: 'red' }"
v-prefix-star="{
enabled: showSuggestion,
show: matchSuggestion,
show: question.matchSuggestion,
tooltip: 'This question contains a suggestion',
}"
/>
Expand Down Expand Up @@ -45,7 +45,6 @@ export default {
},
data() {
return {
matchSuggestion: this.question.matchSuggestion,
tooltipMessage: this.question.description,
openTooltip: false,
timer: null,
Expand All @@ -57,9 +56,6 @@ export default {
},
},
watch: {
"question.matchSuggestion"() {
this.matchSuggestion = this.question.matchSuggestion;
},
"question.description"() {
if (this.timer) clearTimeout(this.timer);
this.openTooltip = true;
Expand Down
3 changes: 2 additions & 1 deletion frontend/plugins/directives/prefix-star.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const sparkIcon = {
element.prepend(emojiWrapper);
},
remove: (element) => {
element.removeChild(element.childNodes[0]);
if (element.childNodes.length === 2)
element.removeChild(element.childNodes[0]);
},
};

Expand Down

0 comments on commit 605ebb1

Please sign in to comment.