@oat-sa/tao-core-ui 3.4.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/previewer.js CHANGED
@@ -135,6 +135,10 @@ define(['jquery', 'lodash', 'core/mimetype', 'core/pluginifier', 'ui/mediaplayer
135
135
  * @private
136
136
  */
137
137
  _clearPlayer: function ($elt) {
138
+ if ($elt.parents('.qti-item').length) {
139
+ // avoid clear in qti mode
140
+ return;
141
+ }
138
142
  if ($elt && $elt.data('player')) {
139
143
  $elt.data('player').destroy();
140
144
  $elt.removeData('player');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oat-sa/tao-core-ui",
3
- "version": "3.4.0",
3
+ "version": "3.4.1",
4
4
  "displayName": "TAO Core UI",
5
5
  "description": "UI libraries of TAO",
6
6
  "scripts": {
File without changes
File without changes
package/src/feedback.js CHANGED
File without changes
package/src/previewer.js CHANGED
@@ -139,6 +139,10 @@ const previewer = {
139
139
  * @private
140
140
  */
141
141
  _clearPlayer: function($elt) {
142
+ if ($elt.parents('.qti-item').length) {
143
+ // avoid clear in qti mode
144
+ return;
145
+ }
142
146
  if ($elt && $elt.data('player')) {
143
147
  $elt.data('player').destroy();
144
148
  $elt.removeData('player');
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes