-
Notifications
You must be signed in to change notification settings - Fork 757
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
fix: Make sure to generate OriginalSourceLocation property on DataTemplates #19389
Conversation
…rty information for empty elements (usually DataTemplates) when Hot Reload (and Hot Design) is used.
10c7b6a
to
4d9d40e
Compare
4d9d40e
to
1c45c37
Compare
...urceGenerators/Uno.UI.SourceGenerators.Tests/XamlCodeGeneratorTests/Verifiers/CSGenerator.cs
Show resolved
Hide resolved
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-19389/index.html |
The build 153714 found UI Test snapshots differences: Details
|
@Mergifyio backport release/stable/5.6 |
✅ Backports have been created
|
…5.6/pr-19389 fix: Make sure to generate OriginalSourceLocation property on DataTemplates (backport #19389)
GitHub Issue (If applicable): https://github.com/unoplatform/uno.hotdesign/issues/2980#issuecomment-2622762701 (related, not closing it)
Bugfix
What is the current behavior?
Right now, when generating the code for an empty
<DataTemplate />
, there's is noOriginalSourceLocation
property attached to it, because it's empty.Hot Design rely on this, but the location in the sources is lost when root element of the template is removed, causing problems.
What is the new behavior?
When Hot Reload (so Hot Design) is used, the property is always set, even if there's no children.
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.