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

Can't cornerRadius and shadow be shared on the react-Konva Image component? #1734

Open
whwanyt opened this issue Mar 20, 2024 · 1 comment
Open

Comments

@whwanyt
Copy link

whwanyt commented Mar 20, 2024

I found that cornerRadius and shadow cannot be shared in react18. Is it a bug, or is it a problem with my code?
https://codesandbox.io/p/sandbox/great-shirley-jc84pl?file=%2Fsrc%2FApp.tsx%3A24%2C19

@lavrton
Copy link
Member

lavrton commented Mar 20, 2024

That is a bug and I am not sure yet what will be the good fix from Konva side.
The workaround is to apply fill with some solid color like black. Will work ok for non-transparent images.

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

2 participants