Closed Enyium closed 1 month ago
Yes, that's right, when setting a binding, the right hand side of the binding wins. I took the opportunity to update the documentation in https://github.com/slint-ui/slint/pull/6419
For context, this was done in https://github.com/slint-ui/slint/pull/1821 which explain the rational. (the behavior that you described was how it was first implemented)
Consider this SlintPad demo (see comments):
This demo shows that the value of
el.prop
is an empty string instead of"inner"
. As far as I can see now, it isn't desirable for the implicit default value""
to supersede the inner more specific value. I definitely had a case where the superseding implicit defaults on component usages were intruding and undesired over the specific default from inside the component.