Skip to content

Commit 7ef4c59

Browse files
committed
fix: 🐛 (Renderers) do not render i childless Expandable
1 parent 7bd3101 commit 7ef4c59

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/renderers/Expandable.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ const Expandable = ({
2727

2828
return (
2929
<span onDoubleClick={handleChange}>
30-
<i tabIndex={0} onKeyDown={submitEvent(handleChange)} onClick={handleChange} className={className} />
30+
{hasChildren && (
31+
<i tabIndex={0} onKeyDown={submitEvent(handleChange)} onClick={handleChange} className={className} />
32+
)}
3133
{children}
3234
</span>
3335
);

0 commit comments

Comments
 (0)