Skip to content

Commit 3990c7b

Browse files
committed
fix: fix onCopied props issue. #34
1 parent fd7f7cc commit 3990c7b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ const JsonView: JsonViewComponent = forwardRef<HTMLDivElement, JsonViewProps<obj
115115
displayDataTypes = true,
116116
objectSortKeys = false,
117117
onExpand,
118+
onCopied,
118119
...elmProps
119120
} = props;
120121
const defaultStyle = {
@@ -137,6 +138,7 @@ const JsonView: JsonViewComponent = forwardRef<HTMLDivElement, JsonViewProps<obj
137138
enableClipboard,
138139
shortenTextAfterLength,
139140
highlightUpdates,
141+
onCopied,
140142
onExpand,
141143
}}
142144
initialTypes={{ displayDataTypes }}

0 commit comments

Comments
 (0)