Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit e50c333

Browse files
Fix object component not properly passing the context (#515)
1 parent b9ca97e commit e50c333

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/components/Tags/Object.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import React, { CSSProperties, FC } from "react";
2-
import { PropTypes } from "prop-types";
32
import { observer } from "mobx-react";
4-
import { Block } from "../../utils/bem";
53

64
interface ObjectTagViewProps {
75
item: any;
@@ -22,15 +20,14 @@ const ObjectTagView: FC<ObjectTagViewProps> = ({
2220
const moreProps = item.getProps && item.getProps();
2321

2422
return (
25-
<Block
26-
name="object"
27-
className={className}
23+
<div
24+
className={["lsf-object", className].join(" ")}
2825
dataneedsupdate={item._needsUpdate}
2926
style={style}
3027
{...moreProps}
3128
>
3229
{children}
33-
</Block>
30+
</div>
3431
);
3532
};
3633

0 commit comments

Comments
 (0)