Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone,
I have a custom component that has some custom options in format like changing the font, color ... but when you do reverts to default the values of these change correctly but do not apply to the displayed text.
For example:
I change the font of the text to Times New Roman and this change is applied correctly on the visual. If I click on Reverts to default, it shows the default value in the format panel (Arial, in this case), but the visual continues to use Times New Roman
What can be caused this?
Thanks in advance
Solved! Go to Solution.
Finally i solved it checking if settings have changed or visual resized in update method and then redraw the visual in this case .
Finally i solved it checking if settings have changed or visual resized in update method and then redraw the visual in this case .
It seems the font family is applied to DOM elements improperly.
We'd recommend to debug the visual step-by-step to find a root case.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.