IntellijAlpine icon indicating copy to clipboard operation
IntellijAlpine copied to clipboard

Prevent IDE warning about missing required attributes when bound instead

Open crumple-zone opened this issue 1 year ago • 3 comments

It would be great if using bindings for DOM element required attributes didn't result in an IDE warning for "missing" attributes.

For example, the <img> element requires a src attribute. But when this is bound, PhpStorm doesn't understand that src is taken care of by :src and shows a warning:

image

I prefer the bad warning to turning off that inspection, but thought there might be a way around this.

crumple-zone avatar Sep 21 '23 20:09 crumple-zone

The most recent PR (https://github.com/inxilpro/IntellijAlpine/pull/46) should fix that, while it's not merged you can refer to https://github.com/joao-pedro-braz/IntellijAlpine/releases/tag/v0.6.1 for an unsigned release.

joao-pedro-braz avatar Sep 26 '23 23:09 joao-pedro-braz

Thank you so much!

crumple-zone avatar Sep 27 '23 12:09 crumple-zone

It would be really great if this could get fixed :)

sprankhub avatar Apr 05 '24 11:04 sprankhub