Commit f7baf7a5 by Braden MacDonald

Temporary workaround for a Studio bug

parent 49c9cdce
...@@ -316,6 +316,7 @@ function DragAndDropBlock(runtime, element, configuration) { ...@@ -316,6 +316,7 @@ function DragAndDropBlock(runtime, element, configuration) {
if (!window.gettext) { window.gettext = function gettext_stub(string) { return string; }; } if (!window.gettext) { window.gettext = function gettext_stub(string) { return string; }; }
var $element = $(element); var $element = $(element);
element = $element[0]; // temporary workaround for Studio bug when first adding a new block
// root: root node managed by the virtual DOM // root: root node managed by the virtual DOM
var $root = $element.find('.xblock--drag-and-drop'); var $root = $element.find('.xblock--drag-and-drop');
var root = $root[0]; var root = $root[0];
......
Markdown is supported
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