You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
ifThruthy removes an attribute key and value if value is falsy.
lit-html updates the attribute no matter if the value is changed which causes some issues.
TODO
Test and check what would cost if we remove the custom directive and stick too lit's public APIs. (check ifDefined)
Affected components
ListItem's src property makes requests no matter if updated with a new value or not.
The text was updated successfully, but these errors were encountered:
* Background: "ifThruthy" removes an attribute key and value if value is falsy, but it makes the templates less efficient, as lit-html updates attributes no matter, if the value is changed which causes some issues.
* Fixes: #401
* Changes:
* Rename "ifThruthy" to "ifDefined" and correct the directive logic to update only if the result of the directive is different from the previous value.
* Attributes undefined, null and empty strings are removed from DOM.
* Remove obsolete "common" partials
* Make use of boolean props syntax in lit-html
* Fix default value for string props, the default becomes empty string or the the value, given via the defaultValue metadata key.
* Clean templates from non-existing component properties (tooltip, dir..)
* Remove type: "Active" everywhere the ui5-li is used, as it is "Active" by default
Describe the bug
ifThruthy removes an attribute key and value if value is falsy.
lit-html updates the attribute no matter if the value is changed which causes some issues.
TODO
Test and check what would cost if we remove the custom directive and stick too lit's public APIs. (check ifDefined)
Affected components
ListItem's src property makes requests no matter if updated with a new value or not.
The text was updated successfully, but these errors were encountered: