Skip to content
Snippets Groups Projects
Commit 5d0796f6 authored by jojohoch's avatar jojohoch
Browse files

Fix lint errors in text field and text area

parent 9e584e32
No related branches found
No related tags found
No related merge requests found
import { Component, Output, EventEmitter, Input } from '@angular/core'; import {
Component, Output, EventEmitter, Input
} from '@angular/core';
import { FormElementComponent } from '../../directives/form-element-component.directive'; import { FormElementComponent } from '../../directives/form-element-component.directive';
import { TextAreaElement } from './text-area-element'; import { TextAreaElement } from './text-area-element';
...@@ -22,7 +24,7 @@ import { TextAreaElement } from './text-area-element'; ...@@ -22,7 +24,7 @@ import { TextAreaElement } from './text-area-element';
<textarea matInput #input <textarea matInput #input
autocomplete="off" rows="{{elementModel.rowCount}}" autocomplete="off" rows="{{elementModel.rowCount}}"
[formControl]="elementFormControl" [formControl]="elementFormControl"
[value]="elementModel.value" [value]="$any(elementModel.value)"
[readonly]="elementModel.readOnly" [readonly]="elementModel.readOnly"
[style.min-width.%]="100" [style.min-width.%]="100"
[style.line-height.%]="elementModel.fontProps.lineHeight" [style.line-height.%]="elementModel.fontProps.lineHeight"
......
...@@ -24,7 +24,7 @@ import { TextFieldElement } from './text-field-element'; ...@@ -24,7 +24,7 @@ import { TextFieldElement } from './text-field-element';
<mat-label>{{elementModel.label}}</mat-label> <mat-label>{{elementModel.label}}</mat-label>
<input matInput type="text" #input autocomplete="off" <input matInput type="text" #input autocomplete="off"
[formControl]="elementFormControl" [formControl]="elementFormControl"
[value]="elementModel.value" [value]="$any(elementModel.value)"
[pattern]="elementModel.pattern" [pattern]="elementModel.pattern"
[readonly]="elementModel.readOnly" [readonly]="elementModel.readOnly"
(focus)="elementModel.inputAssistancePreset !== 'none' ? onFocusChanged.emit(input) : null" (focus)="elementModel.inputAssistancePreset !== 'none' ? onFocusChanged.emit(input) : null"
...@@ -54,7 +54,7 @@ import { TextFieldElement } from './text-field-element'; ...@@ -54,7 +54,7 @@ import { TextFieldElement } from './text-field-element';
[appearance]="$any(elementModel.appearance)"> [appearance]="$any(elementModel.appearance)">
<input matInput type="text" #input autocomplete="off" <input matInput type="text" #input autocomplete="off"
[formControl]="elementFormControl" [formControl]="elementFormControl"
[value]="elementModel.value" [value]="$any(elementModel.value)"
[readonly]="elementModel.readOnly" [readonly]="elementModel.readOnly"
[pattern]="elementModel.pattern" [pattern]="elementModel.pattern"
(focus)="elementModel.inputAssistancePreset !== 'none' ? onFocusChanged.emit(input) : null" (focus)="elementModel.inputAssistancePreset !== 'none' ? onFocusChanged.emit(input) : null"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment