mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
radio
This commit is contained in:
@@ -33,7 +33,7 @@ export class Label {
|
||||
}
|
||||
|
||||
this.scrollAssist = config.setting('keyboardScrollAssist');
|
||||
this.scrollAssist = true;
|
||||
this.scrollAssist = true; //TODO get rid of this
|
||||
}
|
||||
|
||||
pointerStart(ev) {
|
||||
|
||||
@@ -10,9 +10,10 @@ import {RadioButton} from '../radio/radio';
|
||||
|
||||
@Directive({
|
||||
selector: 'input[type=checkbox],input[type=radio]',
|
||||
properties: [ 'checked', 'name' ],
|
||||
properties: [ 'checked', 'name', 'value' ],
|
||||
host: {
|
||||
'[checked]': 'checked',
|
||||
'[value]': 'value',
|
||||
'[attr.name]': 'name',
|
||||
'(change)': 'onChangeEvent($event)'
|
||||
}
|
||||
@@ -41,6 +42,8 @@ export class TapInput extends IonInput {
|
||||
this.tabIndex = this.tabIndex || '';
|
||||
}
|
||||
|
||||
//to detect switching/selecting inputs with the keyboard
|
||||
//view -> model (Control)
|
||||
onChangeEvent(ev) {
|
||||
this.container && this.container.onChangeEvent(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user