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

Template property with unspecified value should have a better behavior #161

Open
LastLeaf opened this issue Jun 19, 2024 · 0 comments
Open
Assignees
Labels
enhancement New feature or request module:core

Comments

@LastLeaf
Copy link
Member

Currently, when a property value is unspecified (e.g. <div some-prop> ) in WXML, it will be treated as {{true}} (e.g. <div some-prop="{{ true }}"> ).

This behavior works on most pratical cases, since this usually happens on boolean properties. However, if it is used in non-boolean properties, this behavior is strange.

@LastLeaf LastLeaf added enhancement New feature or request module:core labels Jun 19, 2024
@LastLeaf LastLeaf self-assigned this Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request module:core
Projects
None yet
Development

No branches or pull requests

1 participant