Closed totegamma closed 1 year ago
I fixed this with the way to use random maskID. https://github.com/boringdesigners/boring-avatars/compare/master...totegamma:boring-avatars:master?expand=1 I will make this as a PR if you like it.
hey @totegamma thanks for dropping this. We had other PR's attempting to fix this issue in the past.
I believe the best solution would be to use the useId
hook instead of uuid
library. I'll create a PR and release a fix this same week 👍
The latest release 1.10.0
should fix the issue. @totegamma let me know if that works.
Describe the bug When rendering several amounts of avatars, each avatar has its mask with the id "mask__beam"(when using avatar-beams.js). But this is "ID," so the avatar's lookups are the first. With this, we can't use circle and square avatars on the same page. And also, when specifying 'visibility: hidden' to the first one, the others go to hidden too.
To Reproduce
Expected behavior It should be square and circle.
Each avatar would have a random id or use border-radius instead.
Screenshots ↑second one should be square ↑ second one should be visible
Desktop:
Additional context ref: https://www.antonball.dev/blog/2020-06-15-svg-id-collision/
Thanks for developing this library! I love 'beam' cute avatars.