tomblachut / svelte-intellij

Svelte components in WebStorm and friends
MIT License
482 stars 38 forks source link

Wrong attribute value when using a reactive variable $: #260

Closed AnthoniG closed 2 years ago

AnthoniG commented 2 years ago

<button disabled={disabled} type="submit" class="btn bg-gradient-primary w-100 my-4 mb-2">Sign in</button>

The above html fragment highlights the disabled when I am using a reactive statement. It works perfectly in the browser, but in Webstorm it is highlighting these and it's very frustrating because I need to keep checking if missed something.

Not sure if can fix this, or if I have to block the intention.

Anyone any ideas ?


edit

Just found this on Webstorm blog

Disable inspection "wrong attribute value"

It seems, as Elena Pogorelova says, that it is a low level check and thus it can not be disabled.

Does this mean your plugin as well ?

tomblachut commented 2 years ago

Does this mean your plugin as well?

The linked problem is connected partially. We can hide the warning for computed/dynamic expressions on Svelte plugin side with update.

The actual check is indeed low level and cannot be configured in the settings, that's what Elena meant.

Actually, this is a duplicate of #251

Edit: I linked this issue recursively 🙈