Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SF][ui5-toolbar]: consider element scoping in toolbar shared resources #10033

Open
1 task done
zhangliangyi opened this issue Oct 16, 2024 · 2 comments
Open
1 task done
Labels
bug This issue is a bug in the code enhancement New feature or request SAP SF TOPIC P

Comments

@zhangliangyi
Copy link

Bug Description

I noticed that there is a shared resource registry in the new ui5-toolbar component. But right now, the pure tag name is used as the registry key.

registry.set(ElementClass.getMetadata().getPureTag(), ElementClass);

But considering the element scoping, if there are several ui5 contexts in the current runtime, the toolbar constructor would be polluted. All the toolbar components would use the first registered constructor even they have element scope defined for different versions.

Affected Component

ui5-toolbar

Expected Behaviour

Using tag name with element scoping as the registry key.

Isolated Example

No response

Steps to Reproduce

N/A

Log Output, Stack Trace or Screenshots

No response

Priority

Medium

UI5 Web Components Version

2.3.0

Browser

Edge

Operating System

No response

Additional Context

No response

Organization

SF

Declaration

  • I’m not disclosing any internal or sensitive information.
@zhangliangyi zhangliangyi added the bug This issue is a bug in the code label Oct 16, 2024
@PetyaMarkovaBogdanova PetyaMarkovaBogdanova self-assigned this Oct 16, 2024
@PetyaMarkovaBogdanova
Copy link
Contributor

Hi team,
can you, please, review this enhancement request?
Best regards,
Petya Markova.
(UI5 Web Components Dispatcher)

@PetyaMarkovaBogdanova PetyaMarkovaBogdanova removed their assignment Oct 16, 2024
@zhangliangyi
Copy link
Author

This issue is a solid blocker when leveraging new toolbar component in our upgrade work. As a workaround, right now we have to roll back to the legacy toolbar in ui5-react.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug in the code enhancement New feature or request SAP SF TOPIC P
Projects
Development

No branches or pull requests

2 participants