Skip to content

Commit

Permalink
Merge pull request #173 from avantifellows/feat/disable-copy-paste
Browse files Browse the repository at this point in the history
disabled copy-paste functionality for questions in the quiz assesment
  • Loading branch information
suryabulusu authored Nov 8, 2024
2 parents 3856a62 + 169c481 commit d8bb9c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Questions/Body.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
></p>
</div>
<!-- question text -->
<div class="mx-6 md:mx-10">
<div class="mx-6 md:mx-10" v-bind="isQuizAssessment && !hasQuizEnded ? { inert: true } : {}">
<p :class="questionTextClass" data-test="text" v-html="text"></p>
</div>
<div :class="orientationClass">
Expand All @@ -52,7 +52,7 @@
/>
</div>
<!-- question image container -->
<div :class="questionImageContainerClass" v-if="isQuestionImagePresent">
<div :class="questionImageContainerClass" v-if="isQuestionImagePresent" v-bind="isQuizAssessment && !hasQuizEnded ? { inert: true } : {}">
<img
:src="imageData.url"
class="object-contain h-full w-full"
Expand Down Expand Up @@ -97,6 +97,7 @@
v-html="option.text"
class="ml-2 h-full place-self-center text-base sm:text-lg"
:data-test="`option-${optionIndex}`"
v-bind="isQuizAssessment && !hasQuizEnded ? { inert: true } : {}"
></div>
</label>
</div>
Expand Down

0 comments on commit d8bb9c6

Please sign in to comment.