You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We have a scenario where we load an app extension (components) from another URL. The components from this URL are containing e.g. a ui5-select and a addCustomCSS call. Although the addCustomCSS call is executed and the style is registered in the customCSSFor map in CustomStyle.js, the styles are not applied.
I also tried to force a rerender using _invalidate() or _updateShadowRoot() on the ui5-select but it had no effect.
To reproduce
Steps to reproduce the behavior:
Open the codesandbox
Press apply styles and rerender
Nothing happens (I would have expected that the select background is now red.
Optional - if you move the addCustomCSS outside of the callback everything works as expected.
Expected behavior
I would expect that custom styles are applied when components are rerendered. (Updating the affected components can be in the responsibility of the user IMO, but would be nice if the framework could do that as well).
Context
UI5 Web Components version: 1.0.0-rc.8
The text was updated successfully, but these errors were encountered:
Describe the bug
We have a scenario where we load an app extension (components) from another URL. The components from this URL are containing e.g. a
ui5-select
and aaddCustomCSS
call. Although theaddCustomCSS
call is executed and the style is registered in thecustomCSSFor
map inCustomStyle.js
, the styles are not applied.I also tried to force a rerender using
_invalidate()
or_updateShadowRoot()
on theui5-select
but it had no effect.To reproduce
Steps to reproduce the behavior:
addCustomCSS
outside of the callback everything works as expected.Isolated example
https://codesandbox.io/s/epic-heyrovsky-q4m0j?file=/src/index.js
Expected behavior
I would expect that custom styles are applied when components are rerendered. (Updating the affected components can be in the responsibility of the user IMO, but would be nice if the framework could do that as well).
Context
The text was updated successfully, but these errors were encountered: