Skip to content

Commit

Permalink
Add issue log message
Browse files Browse the repository at this point in the history
  • Loading branch information
benStre committed Oct 8, 2024
1 parent 6ae1eee commit 76d68cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jsx/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ export function getParseJSX(context: DOMContext, domUtils: DOMUtils) {
if (attr == "style" && (element as HTMLElement).style) domUtils.setCSS(element as HTMLElement, <any> val);
else {
const valid_attr = domUtils.setElementAttribute(element, attr, <any>val, module);
if (!allow_invalid_attributes && !valid_attr) logger.warn(`Attribute "${attr}" is not allowed for <${element.tagName.toLowerCase()}> element`)
if (!allow_invalid_attributes && !valid_attr)
logger.warn(`Attribute "${attr}" is not allowed for <${element.tagName.toLowerCase()}> element. If you believe this is a mistake, please open an issue at https://github.com/unyt-org/uix`);
}
}
}
Expand Down

0 comments on commit 76d68cb

Please sign in to comment.