Skip to content

Commit 61b8ea6

Browse files
committed
Fix clipboard context
1 parent d5dddff commit 61b8ea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/dash-core-components/src/components/Clipboard.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function wait(ms) {
1616
*/
1717

1818
export default class Clipboard extends React.Component {
19-
context = window.dash_component_api.DashContext;
19+
static contextType = window.dash_component_api.DashContext;
2020

2121
constructor(props) {
2222
super(props);

0 commit comments

Comments
 (0)