primitives
primitives copied to clipboard
[Avatar] `onError` doesn't work on Image
trafficstars
Bug report
Current Behavior
I'm using an image that I get from an API. When this image is invalid, the component should trigger onError, but this does not happen in the AvatarImage component.
When I do the test with the img tag, it works correctly

Expected behavior
This component is expected to behave the same as the standard HTML component
| Software | Name(s) | Version |
|---|---|---|
| Radix Package(s) | @radix-ui/react-avatar | "^1.0.0" |
| React | n/a | 17.0.2 |
| Browser | Opera | 90.0 |
| Assistive tech | NVDA | 2022.2.2 |
| Node | n/a | 14.20 |
| npm/yarn | npm | 6.14.17 |
| Operating System | windows | 10 |
Related https://github.com/radix-ui/primitives/issues/1616#issuecomment-1217722992