mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
fix: recreate widget div
This commit is contained in:
@@ -51,7 +51,7 @@ export function testOnly_setDiv(newDiv: HTMLDivElement | null) {
|
||||
* Create the widget div and inject it onto the page.
|
||||
*/
|
||||
export function createDom() {
|
||||
if (containerDiv) {
|
||||
if (document.querySelector('.blocklyWidgetDiv')) {
|
||||
return; // Already created.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user