react-image-display-control icon indicating copy to clipboard operation
react-image-display-control copied to clipboard

Warn if we are overriding `is=` attribute

Open lourot opened this issue 2 years ago • 0 comments
trafficstars

When doing

<ImageDisplayControl>
  <img src=... />
</ImageDisplayControl>

an is="image-display-control" attribute will be added to the <img> tag in order to turn it into an Image Display Control web component. This is problematic however if the <img> tag already had another is= attribute, e.g.

<ImageDisplayControl>
  <img is="already-another-component" src=... />
</ImageDisplayControl>

An <img> tag can't be two web components at the same time. We should at least issue a warning if this happens.

lourot avatar Jun 06 '23 21:06 lourot