Skip to content

Commit

Permalink
fix: fix onCopied props issue. #34
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 24, 2024
1 parent fd7f7cc commit 3990c7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ const JsonView: JsonViewComponent = forwardRef<HTMLDivElement, JsonViewProps<obj
displayDataTypes = true,
objectSortKeys = false,
onExpand,
onCopied,
...elmProps
} = props;
const defaultStyle = {
Expand All @@ -137,6 +138,7 @@ const JsonView: JsonViewComponent = forwardRef<HTMLDivElement, JsonViewProps<obj
enableClipboard,
shortenTextAfterLength,
highlightUpdates,
onCopied,
onExpand,
}}
initialTypes={{ displayDataTypes }}
Expand Down

0 comments on commit 3990c7b

Please sign in to comment.