Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onCopy and onCut are not triggering #162

Open
darckex opened this issue Jan 29, 2025 · 5 comments
Open

onCopy and onCut are not triggering #162

darckex opened this issue Jan 29, 2025 · 5 comments

Comments

@darckex
Copy link

darckex commented Jan 29, 2025

<FileManager
onCut={() => console.log("cut")}
onCopy={() => console.log("copy")}
/>

they don't trigger when i copy or cut

@Saifullah-dev
Copy link
Owner

@darckex what react-file-manager version are you on ?

@darckex
Copy link
Author

darckex commented Jan 30, 2025

@Saifullah-dev im using version 1.18.0 @cubone/[email protected]

@Saifullah-dev
Copy link
Owner

Ok, let me check into this.

@darckex darckex changed the title onCopy and onCut and not triggering onCopy and onCut are not triggering Jan 30, 2025
@pradeepadbe
Copy link

<FileManager onCut={() => console.log("cut")} onCopy={() => console.log("copy")} />

they don't trigger when i copy or cut

@Saifullah-dev facing same issue.

@Saifullah-dev
Copy link
Owner

@darckex @pradeepadbe I just tested it (with npm create vite@latest) and It's working fine for me.

Could you please share your package.json file so that I can have a better look into this. Also, is your react app created using create-react-app or vite?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants