mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(textInputs): register components, don't use Query
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import {Directive} from 'angular2/angular2';
|
||||
import {Directive, Optional} from 'angular2/angular2';
|
||||
|
||||
import {IonicConfig} from '../../config/config';
|
||||
import {TextInput} from './text-input';
|
||||
import {pointerCoord, hasPointerMoved} from '../../util/dom';
|
||||
|
||||
/**
|
||||
@ -25,8 +26,9 @@ export class Label {
|
||||
* TODO
|
||||
* @param {IonicConfig} config
|
||||
*/
|
||||
constructor(config: IonicConfig) {
|
||||
constructor(config: IonicConfig, @Optional() textInput: TextInput) {
|
||||
this.scrollAssist = config.get('keyboardScrollAssist');
|
||||
textInput && textInput.registerLabel(this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user