Skip to content

Commit

Permalink
Use render_to() to render toolbar's tool buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpap committed Apr 22, 2024
1 parent 8963f9e commit 9bcbdfb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bokehjs/src/lib/models/tools/toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,7 @@ export class ToolbarView extends UIElementView {
}

for (const [, button_view] of this._tool_button_views) {
button_view.render()
button_view.after_render()
button_view.render_to(this.shadow_el)
}

const bars = this._tool_buttons.map((group) => group.map((button) => this._tool_button_views.get(button)!.el))
Expand All @@ -209,7 +208,7 @@ export class ToolbarView extends UIElementView {

for (const el of join<HTMLElement>(non_empty, divider)) {
this._items.push(el)
this.shadow_el.appendChild(el)
this.shadow_el.append(el)
}
}

Expand Down

0 comments on commit 9bcbdfb

Please sign in to comment.