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

Issue a warning if known attributes are on the wrong component

Open lourot opened this issue 2 years ago • 2 comments

For example, if the user writes

<ImageDisplayControl data-disabled="all">
  <Image src="..." />
</ImageDisplayControl>

instead of

<ImageDisplayControl>
  <Image src="..." data-disabled="all" />
</ImageDisplayControl>

See:

  • https://docs.frameright.io/react/attributes
  • https://docs.frameright.io/web-component/attribute-ref

lourot avatar Aug 24 '23 13:08 lourot

Are you asking to open the issue on the above problem mentioned?

AbhiR-03 avatar Aug 24 '23 16:08 AbhiR-03

Hi @AbhiR-03, yes I was thinking of a console warning like this one. Let me know if you want to give a try at solving this issue. Thanks!

lourot avatar Aug 24 '23 20:08 lourot