From 1cbfae5bd7df9cac3e2385fcdd201d8bb3b627b0 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Thu, 18 Mar 2021 10:54:42 +0100 Subject: [PATCH] Make ReactiveHTML JS model inherit from HTMLBox --- panel/models/reactive_html.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panel/models/reactive_html.ts b/panel/models/reactive_html.ts index 55b1ee1802..e77fadb60c 100644 --- a/panel/models/reactive_html.ts +++ b/panel/models/reactive_html.ts @@ -5,7 +5,7 @@ import {html} from 'htm/preact'; import {build_views} from "@bokehjs/core/build_views" import {isArray} from "@bokehjs/core/util/types" import * as p from "@bokehjs/core/properties" -import {Markup} from "@bokehjs/models/widgets/markup" +import {HTMLBox} from "@bokehjs/models/layouts/html_box" import {LayoutDOM} from "@bokehjs/models/layouts/layout_dom" import {empty, classes} from "@bokehjs/core/dom" import {color2css} from "@bokehjs/core/util/color" @@ -375,7 +375,7 @@ export class ReactiveHTMLView extends PanelHTMLBoxView { export namespace ReactiveHTML { export type Attrs = p.AttrsOf - export type Props = Markup.Props & { + export type Props = HTMLBox.Props & { attrs: p.Property callbacks: p.Property children: p.Property @@ -389,7 +389,7 @@ export namespace ReactiveHTML { export interface ReactiveHTML extends ReactiveHTML.Attrs {} -export class ReactiveHTML extends Markup { +export class ReactiveHTML extends HTMLBox { properties: ReactiveHTML.Props constructor(attrs?: Partial) {