Jell-Tech / angular-bootstrap-material

Angular directives for FezVrasta/bootstrap-material-design (jell-web dependency)
MIT License
19 stars 5 forks source link

Fix # Issue with toggle button #10

Closed riversy closed 9 years ago

riversy commented 9 years ago

I've translated it to CoffeeScript and slight rewritten to make toggleButton working.

mmattax commented 9 years ago

The only issue here is that checkbox and radio directives now run on the parent container rather than the inputs, which causes problems with transclusion (often a input won't be found when the JS runs)

$($element[0]).find('label > input[type=checkbox]')

Instead could you look at the parent / container elements to detect toggle support?