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
When I use the attr binding to set the draggable (non-boolean) attribute it is removed completely from the DOM when the expression evaluates to false. This is incorrect as img and a elements are draggable by default, so it is impossible to set them to be not draggable using Knockout. I had a quick look at the attr binding code and it seems to always remove an attribute when its expression evaluates to false. This should only happen when the attribute is actually a boolean attribute. The following are all boolean attributes from the HTML5 spec grouped by the elements they are legal on:
Is is possible for Knockout to only remove attributes when the attr binding expression evaluates to false and the attribute is an actual boolean attribute?
The text was updated successfully, but these errors were encountered:
When I use the
attr
binding to set the draggable (non-boolean) attribute it is removed completely from the DOM when the expression evaluates to false. This is incorrect asimg
anda
elements aredraggable
by default, so it is impossible to set them to be not draggable using Knockout. I had a quick look at theattr
binding code and it seems to always remove an attribute when its expression evaluates to false. This should only happen when the attribute is actually a boolean attribute. The following are all boolean attributes from the HTML5 spec grouped by the elements they are legal on:Is is possible for Knockout to only remove attributes when the
attr
binding expression evaluates to false and the attribute is an actual boolean attribute?The text was updated successfully, but these errors were encountered: