Skip to content

Commit

Permalink
fix(field): fix align baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
alyleui committed Oct 26, 2018
1 parent af4a343 commit ec65493
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/lib/field/input.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Directive, ElementRef, Optional, Self, Input, HostListener, HostBinding, OnInit, Renderer2, OnDestroy } from '@angular/core';
import { NgControl, NgForm, FormGroupDirective } from '@angular/forms';
import { toBoolean, LyTheme2 } from '@alyle/ui';
import { toBoolean } from '@alyle/ui';
import { Subject } from 'rxjs';

/** @ignore */
Expand Down Expand Up @@ -77,19 +77,16 @@ export class LyInputNative implements OnInit, OnDestroy {
constructor(
private _el: ElementRef<HTMLInputElement | HTMLTextAreaElement>,
private _renderer: Renderer2,
private _theme: LyTheme2,
/** @ignore */
@Optional() @Self() public ngControl: NgControl,
@Optional() _parentForm: NgForm,
@Optional() _parentFormGroup: FormGroupDirective,
@Optional() _parentFormGroup: FormGroupDirective
) {
this._hostElement = this._el.nativeElement;
}

ngOnInit() {
if (this.placeholder) {
this._renderer.removeAttribute(this._hostElement, ATTR_PLACEHOLDER);
}
this._renderer.setAttribute(this._hostElement, ATTR_PLACEHOLDER, '­');
}

ngOnDestroy() {
Expand Down

0 comments on commit ec65493

Please sign in to comment.