mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(input): add 'type="button"' to button tag
Add attribute 'type="button"' to button tag. The missing attribute caused forms with ion-toggle/ion-radio to not be submitted as a normal form.
This commit is contained in:
@ -36,6 +36,7 @@ import {RadioGroup} from './radio-group';
|
||||
'<div class="radio-inner"></div>' +
|
||||
'</div>' +
|
||||
'<button role="radio" ' +
|
||||
'type="button" ' +
|
||||
'[id]="id" ' +
|
||||
'[attr.aria-checked]="_checked" ' +
|
||||
'[attr.aria-labelledby]="_labelId" ' +
|
||||
|
@ -57,6 +57,7 @@ const TOGGLE_VALUE_ACCESSOR = new Provider(
|
||||
'<div class="toggle-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