javascript - Checkbox problems with meteor template and blaze -


I have some code that was shining beforehand which is no longer working as a hopeful situation And checkbox handling changes.

The code is very simple

  & lt; Div class = "modal-footer" & gt; & Lt; Label = "packed" category = "checkbox-inline input-lg" & gt; Packed & lt; / Label & gt; & Lt; Input type = "checkbox" name = "packed" id = "packed" checked {{deliberately}} /> {{#if ifpacked evt}} packaged {{else}} not packed {{/ if}} & lt; Label = "delivered" class = "checkbox-inline input-LG" & gt; Distributed & lt; / Label & gt; & Lt; Input type = "checkbox" name = "distributed" id = "distributed" disabled = {{disDelivered evt}} check = {{delivered}} /> & Lt; Button type = "button" class = "btn btn-default" id = "closeEdit" & gt; Close & lt; / Button & gt; & Lt; / Div & gt;  

The "not packed" line is displayed as expected, however, both check boxes are checked (though both tests return false) and expected Is given due to being disabled.

I can not work for my life because the check boxes are now being examined, even if they return to the exam.

Blaze will automatically turn the returned object to attributes, so that you {checked: Checked "} , the checkbox must be checked or returned unnecessarily on it.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -