Skip to content

Commit 75c3e3e

Browse files
committed
fix for weird styling issue reported by @jtamiace
learningequality#2631 (comment) Switched from `transition-group` outside of the list to `transition` inside. Not sure why this helped, but might it seems that there’s a conflict between the `transition-group` and `:style`. Here’s a possibly related issue: vuejs/vue#7041 (note that using `v2.3.4` did _not_ help)
1 parent a0e5426 commit 75c3e3e

File tree

1 file changed

+9
-9
lines changed
  • kolibri/plugins/learn/assets/src/views/assessment-wrapper/exercise-attempts

1 file changed

+9
-9
lines changed

kolibri/plugins/learn/assets/src/views/assessment-wrapper/exercise-attempts/index.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<template>
22

33
<div class="wrapper">
4-
<transition-group name="fade">
5-
<div
6-
class="answer"
7-
v-for="(item, index) in itemsToRender"
8-
:style="styleForIndex(index, item.originalIndex)"
9-
:key="item.originalIndex"
10-
>
4+
<div
5+
class="answer"
6+
v-for="(item, index) in itemsToRender"
7+
:style="styleForIndex(index, item.originalIndex)"
8+
:key="item.originalIndex"
9+
>
10+
<transition name="fade">
1111
<answer-icon :answer="item.answer" />
12-
</div>
13-
</transition-group>
12+
</transition>
13+
</div>
1414
<div
1515
class="placeholder"
1616
v-for="i in numSpaces"

0 commit comments

Comments
 (0)