Skip to content

Clipboard doesn't update if onCopy is defined #26

@azazdeaz

Description

@azazdeaz

Hi, thanks a lot for this tool!

Maybe i doing something wrong but it's looks like the clipboard is only updating if i don't fill the onCopy param.

I tested on a basic example like:

<div>
   <p>Click the button to copy some text</p>
      <ReactZeroClipboard text="Hello, world!" onCopy={function(){}}>
         <button>Copy</button>
      </ReactZeroClipboard>
</div>

with react@0.13.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions