mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +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 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" ' +
|
||||||
|
Reference in New Issue
Block a user