aurelia-ui-toolkits / aurelia-materialize-bridge

Materialize CSS components for Aurelia
http://aurelia-ui-toolkits.github.io/demo-materialize/
MIT License
156 stars 53 forks source link

<md-checkbox> indeterminate state cannot be applied after the element is attached #561

Open SvetlozarValchev opened 4 years ago

SvetlozarValchev commented 4 years ago

It seems that the checkbox's indeterminate state (which corresponds to value=null) is not available once the element is attached. You can initially set it to indeterminate, but you cannot set to indeterminate state with value changes. From the code here, you can see that the value is checked only on attached, and it cannot be set to indeterminate on subsequent value changes: https://github.com/aurelia-ui-toolkits/aurelia-materialize-bridge/blob/2fa331315f8d3bd26b826c0a350f0fd58c94bd31/src/checkbox/checkbox.ts#L54-L58