BugFixes: #8
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Component, forwardRef } from '@angular/core';
|
||||
import { Component, forwardRef, Input } from '@angular/core';
|
||||
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
||||
import { NgxCurrencyDirective } from 'ngx-currency';
|
||||
import { BaseInputComponent } from '../base-input/base-input.component';
|
||||
@@ -18,14 +18,17 @@ import { ValidationMessagesService } from '../validation-messages.service';
|
||||
},
|
||||
],
|
||||
templateUrl: './validated-price.component.html',
|
||||
styles: `:host{width:100%}`,
|
||||
})
|
||||
export class ValidatedPriceComponent extends BaseInputComponent {
|
||||
@Input() inputClasses: string;
|
||||
@Input() placeholder: string;
|
||||
constructor(validationMessagesService: ValidationMessagesService) {
|
||||
super(validationMessagesService);
|
||||
}
|
||||
|
||||
onInputChange(event: Event): void {
|
||||
this.value = event;
|
||||
this.value = !event ? null : event;
|
||||
this.onChange(event);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user