WEB-67650 React JSX: false positive attribute className is not allowed here with the new type evaluation

GitOrigin-RevId: 5721b5f0d0cbced014968739b5d177bf0fb62698
This commit is contained in:
Andrey Vorobev
2024-07-18 09:12:59 +03:00
committed by intellij-monorepo-bot
parent 8134aff6ea
commit 83c6af75c9

View File

@@ -127,7 +127,8 @@ public class HtmlUnknownAttributeInspectionBase extends HtmlUnknownElementInspec
for (XmlUnknownAttributeQuickFixProvider fixProvider : XmlUnknownAttributeQuickFixProvider.EP_NAME.getExtensionList()) {
quickfixes.addAll(fixProvider.getOrRegisterAttributeFixes(tag, name, holder, isFixRequired));
var providerHighlightType = fixProvider.getProblemHighlightType(tag);
if (providerHighlightType != ProblemHighlightType.GENERIC_ERROR_OR_WARNING) {
if (highlightType == ProblemHighlightType.GENERIC_ERROR_OR_WARNING
&& providerHighlightType != ProblemHighlightType.GENERIC_ERROR_OR_WARNING) {
highlightType = providerHighlightType;
}
}