Theme gets inverted on component re-render #2406
-
When the page loads the theme saved in local storage is loaded and everything looks correct. When we select an asset in the tree on the left we load the latest details for that asset and update all our components. The component at the bottom dynamically generates the FluentCards based on the returned data for the selected asset. If we switch the theme to dark or light and then select another asset the style gets inverted as seen in the screenshot. A page refresh will fix this problem. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Can you try, adding the attribute |
Beta Was this translation helpful? Give feedback.
-
I can't believe it was that simple. Thanks. Is this best practice or is this just a short term fix? |
Beta Was this translation helpful? Give feedback.
Can you try, adding the attribute
MinimalStyle="true"
to you FluentCard?