mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
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:
@ -54,6 +54,7 @@ const CHECKBOX_VALUE_ACCESSOR = new Provider(
|
||||
'<div class="checkbox-inner"></div>' +
|
||||
'</div>' +
|
||||
'<button role="checkbox" ' +
|
||||
'type="button" ' +
|
||||
'[id]="id" ' +
|
||||
'[attr.aria-checked]="_checked" ' +
|
||||
'[attr.aria-labelledby]="_labelId" ' +
|
||||
|
Reference in New Issue
Block a user