primitives icon indicating copy to clipboard operation
primitives copied to clipboard

[Avatar] `onError` doesn't work on Image

Open gabrielpenhazup opened this issue 3 years ago • 1 comments
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

image

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

gabrielpenhazup avatar Sep 08 '22 14:09 gabrielpenhazup

Related https://github.com/radix-ui/primitives/issues/1616#issuecomment-1217722992

andy-hook avatar Sep 20 '22 09:09 andy-hook