[FIX] web_widget_bokeh_chart: Activate script and div at the same time

pull/3076/head
Bernat Puig Font 2022-03-09 10:09:00 +01:00 committed by JasminSForgeFlow
parent 255326c27a
commit 0ac8f69242
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ const BokehChartWidget = basicFields.FieldChar.extend({
script.setAttribute("type", "text/javascript");
if ("textContent" in script) script.textContent = val.script;
else script.text = val.script;
$("head").append(script);
this.$el.append(script);
} catch (error) {
return this._super(...arguments);
}