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

fix: Make sure to generate OriginalSourceLocation property on DataTemplates (backport #19389) #19400

Merged

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jan 31, 2025

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 no OriginalSourceLocation 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:


This is an automatic backport of pull request #19389 done by [Mergify](https://mergify.com).

…rty information for empty elements (usually DataTemplates) when Hot Reload (and Hot Design) is used.

(cherry picked from commit 00236eb)
(cherry picked from commit 1c45c37)
@github-actions github-actions bot added the area/code-generation Categorizes an issue or PR as relevant to code generation label Jan 31, 2025
@jeromelaban jeromelaban merged commit f0ac9ae into release/stable/5.6 Jan 31, 2025
19 of 31 checks passed
@jeromelaban jeromelaban deleted the mergify/bp/release/stable/5.6/pr-19389 branch January 31, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/code-generation Categorizes an issue or PR as relevant to code generation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants