Commit 3848856a authored by Alfredo Sumaran's avatar Alfredo Sumaran

Merge branch 'fix-droplab-rendering' into 'master'

Fix droplab rendering template when data-dynamic selector is unavailable

Closes gitlab-ee#1655

See merge request !9012
parents 3f1bc337 ba98f580
...@@ -78,8 +78,8 @@ require('../window')(function(w){ ...@@ -78,8 +78,8 @@ require('../window')(function(w){
}, },
destroy: function() { destroy: function() {
if (this.listTemplate) {
var dynamicList = this.hook.list.list.querySelector('[data-dynamic]'); var dynamicList = this.hook.list.list.querySelector('[data-dynamic]');
if (this.listTemplate && dynamicList) {
dynamicList.outerHTML = this.listTemplate; dynamicList.outerHTML = this.listTemplate;
} }
} }
......
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