Skip to content

Commit 6eb973f

Browse files
committed
fix: don't set ViewContainer className by default
1 parent 2a3f02a commit 6eb973f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src-commons-ui/float-pane/ViewContainer.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ export class ViewContainer extends React.Component<Props, State> {
4545
this.actionButton = this.ActionClick(this.props.action, this.props.actionTitle)
4646
this.updateChildren()
4747
return (
48-
<div className={`${String(this.props.className)} datatip-element`} {...this.props.onMouseDown} {...this.props.onClickCapture}>
48+
<div
49+
className={this.props.className ?? "datatip-element"}
50+
{...this.props.onMouseDown}
51+
{...this.props.onClickCapture}
52+
>
4953
{this.children}
5054
{this.actionButton}
5155
</div>

0 commit comments

Comments
 (0)