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
I get the following error: TypeError: Cannot assign to read only property 'list' of object '#<HTMLInputElement>'
Same happens if I use list="prefix-${listIdVar}" instead.
Expected/desired behavior:
I wanted regular one-way binding from my variable to the "list" attribute of the input element.
However, it seems that aurelia tries to do this via assigning to the read-only 'list' property.
Per http://stackoverflow.com/questions/24925336/set-html5-input-list-value-with-javascript, it seems the correct way to do this is via setAttribute.
Thanks.
The text was updated successfully, but these errors were encountered:
Make sure you have aurelia-templating-resources 1.1.0 or higher.
Keeping this open so we can add logic to the binding engine to use the html attribute by default for this scenario instead of the standard behavior which assigns the dom property.
Hi,
I'm submitting a bug report
1.0.5
Chrome 54 on Windows 7
Current behavior:
If I place the following in a template file: (where listIdVar is a string variable with any value)
I get the following error:
TypeError: Cannot assign to read only property 'list' of object '#<HTMLInputElement>'
Same happens if I use
list="prefix-${listIdVar}"
instead.Expected/desired behavior:
I wanted regular one-way binding from my variable to the "list" attribute of the input element.
However, it seems that aurelia tries to do this via assigning to the read-only 'list' property.
Per http://stackoverflow.com/questions/24925336/set-html5-input-list-value-with-javascript, it seems the correct way to do this is via setAttribute.
Thanks.
The text was updated successfully, but these errors were encountered: