Hello,
First time reporting an issue.
It seems that HTML.Raw
cannot render <input type="checkbox"/>
Template.body.addContent((function() {
var view = this;
return HTML.Raw('<input type="checkbox">\n <input type="submit" value="Submit">');
}));
Meteor.startup(Template.body.renderToDocument);
The above code (taken from browser code inspector) will only show in my browsers one submit button and no check box
(Firefox 54.0.1 (32 bits) and Chrome Version 60.0.3112.78 (64 bits))
I can't reproduce the issue. This is the result I get with your code snippet:
Have you checked the Inspector/Elements tab in the developer tools to see if the checkbox is in the DOM?
@klaussner
Thank you. After looking in DOM I saw it there. Then after a little googling, I saw the issue is not about meteor (if I'm correct) but mainly about materialzeCSS
According to this, checkboxes have to be coded like this : <input type="checkbox" id="checkbox_id"><label for="checkbox_id">custom_label</label>
Sounds like we're okay to close this one off - thanks for looking into this @klaussner!
Most helpful comment
I can't reproduce the issue. This is the result I get with your code snippet:


Have you checked the Inspector/Elements tab in the developer tools to see if the checkbox is in the DOM?