diff --git a/src/app/components/floatlabel/floatlabel.ts b/src/app/components/floatlabel/floatlabel.ts index 22f53e48618..2da7630c8ad 100755 --- a/src/app/components/floatlabel/floatlabel.ts +++ b/src/app/components/floatlabel/floatlabel.ts @@ -1,5 +1,5 @@ import { CommonModule } from '@angular/common'; -import { Component, NgModule } from '@angular/core'; +import { ChangeDetectionStrategy, Component, NgModule, ViewEncapsulation } from '@angular/core'; import { SharedModule } from '../api/shared'; import { RouterModule } from '@angular/router'; @@ -10,13 +10,12 @@ import { RouterModule } from '@angular/router'; @Component({ selector: 'p-floatLabel', template: ` -
+ -
+ `, - host: { - class: 'p-element' - } + changeDetection: ChangeDetectionStrategy.OnPush, + encapsulation: ViewEncapsulation.None, }) export class FloatLabel {}