glass-easel icon indicating copy to clipboard operation
glass-easel copied to clipboard

Template property with unspecified value should have a better behavior

Open LastLeaf opened this issue 8 months ago • 0 comments

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 avatar Jun 19 '24 12:06 LastLeaf