fix(checkbox): add 'type="button"' to <button> tag

Add attribute 'type="button"' to <button> tag. The missing attribute caused forms with

ion-checkboxes to not be submitted as a normal form
This commit is contained in:
Raphael Tomchinsky
2016-04-11 14:30:50 -03:00
parent dad2155ecd
commit 7583ebf0ae

View File

@ -54,6 +54,7 @@ const CHECKBOX_VALUE_ACCESSOR = new Provider(
'<div class="checkbox-inner"></div>' + '<div class="checkbox-inner"></div>' +
'</div>' + '</div>' +
'<button role="checkbox" ' + '<button role="checkbox" ' +
'type="button" ' +
'[id]="id" ' + '[id]="id" ' +
'[attr.aria-checked]="_checked" ' + '[attr.aria-checked]="_checked" ' +
'[attr.aria-labelledby]="_labelId" ' + '[attr.aria-labelledby]="_labelId" ' +