Skip to content

fix(ui5-user-settings): correct usage with scoping#12961

Closed
pskelin wants to merge 1 commit intomainfrom
fix-has-tag
Closed

fix(ui5-user-settings): correct usage with scoping#12961
pskelin wants to merge 1 commit intomainfrom
fix-has-tag

Conversation

@pskelin
Copy link
Contributor

@pskelin pskelin commented Jan 27, 2026

comparing strings to .tagName won't work when tags are scoped. This change introduces a new helper hasTag that checks the pureTag from the component definition.

import { hasTag } from "@ui5/webcomponents-base";
if (hasTag(element, "ui5-button")) {
  // to something
}

@ui5-webcomponents-bot
Copy link
Collaborator

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview January 27, 2026 07:18 Inactive
@pskelin
Copy link
Contributor Author

pskelin commented Feb 4, 2026

fixed with #12983

@pskelin pskelin closed this Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants