This commit is contained in:
Tim Lancina
2015-07-23 16:53:20 -04:00
parent 9184e889b9
commit 57438267c5
5 changed files with 62 additions and 65 deletions

View File

@@ -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) {

View File

@@ -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);
}