diff --git a/ionic/components/form/form.ts b/ionic/components/form/form.ts index af4e26c612..1cb500806b 100644 --- a/ionic/components/form/form.ts +++ b/ionic/components/form/form.ts @@ -1,3 +1,4 @@ +import {Ion} from '../ion'; import {IonicConfig} from '../../config/config'; import * as dom from '../../util/dom'; @@ -6,12 +7,15 @@ let activeInput = null; let lastInput = null; -export class IonInput { +export class IonInput extends Ion { constructor( elementRef: ElementRef, + ionicConfig: IonicConfig, app: IonicApp, scrollView: Content ) { + super(elementRef, ionicConfig); + this.elementRef = elementRef; this.app = app; this.scrollView = scrollView; diff --git a/ionic/components/form/input.ts b/ionic/components/form/input.ts index 3ce0ce3962..9768071991 100644 --- a/ionic/components/form/input.ts +++ b/ionic/components/form/input.ts @@ -71,7 +71,7 @@ export class TextInput extends IonInput { app: IonicApp, config: IonicConfig ) { - super(elementRef, app, scrollView); + super(elementRef, config, app, scrollView); if (container) { container.registerInput(this);