Material-design-lite: upgradeElement() upgradeDom() doesn't work

Created on 4 Jul 2016  路  3Comments  路  Source: google/material-design-lite

Demo: https://jsfiddle.net/littleguga/cgvy45nr/

MDL version: 1.1.3
Browser: last Google Chrome
Operating system: windows 7 x64

I try to dynamically add checkboxes, but no upgrade functions seems to work me.

Most helpful comment

Hey,

youre missing something crucial from the inputs:
checkboxInput.setAttribute('type', 'checkbox');

All 3 comments

Hey,

youre missing something crucial from the inputs:
checkboxInput.setAttribute('type', 'checkbox');

Please use StackOverflow for support and integration assistance. This tracker is only for problems with the code provided by Material Design Lite.

Thank you.

@markopaju shame on me( Great thanks for this and sorry for the panic.

working code: https://jsfiddle.net/littleguga/cgvy45nr/2/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dryror picture dryror  路  5Comments

ktodyruik picture ktodyruik  路  5Comments

baldram picture baldram  路  4Comments

an0nh4x0r picture an0nh4x0r  路  3Comments

brandonjpierce picture brandonjpierce  路  3Comments