fix chrome from copy format (#455)
This commit is contained in:
parent
c271eef6dd
commit
69023de9a4
|
@ -10,7 +10,8 @@ export default class CopyButton extends Component {
|
|||
this.state = { isCopied: false };
|
||||
}
|
||||
|
||||
handleCopy = () => {
|
||||
handleCopy = (copiedText) => {
|
||||
navigator.clipboard.writeText(copiedText);
|
||||
this.setState({ isCopied: true });
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue