Skip to content

Commit 799006d

Browse files
authored
Merge pull request #114 from netgrif/NAE-1715
[NAE-1715] Currency component not working properly
2 parents 1f9764f + 92086dc commit 799006d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

projects/netgrif-components-core/src/lib/data-fields/number-field/currency-number-field/abstract-currency-number-field.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export abstract class AbstractCurrencyNumberFieldComponent extends AbstractNumbe
1313
fieldType: string;
1414
public readonly NUMBER_TYPE = 'number';
1515
public readonly TEXT_TYPE = 'text';
16+
public readonly WHITESPACE = ' ';
1617

1718
protected constructor(protected _currencyPipe: CurrencyPipe, translateService: TranslateService) {
1819
super(translateService);
@@ -24,7 +25,7 @@ export abstract class AbstractCurrencyNumberFieldComponent extends AbstractNumbe
2425
this.numberField.valueChanges().subscribe(value => {
2526
if (value !== undefined) {
2627
if (this.fieldType === this.TEXT_TYPE) {
27-
this.transformedValue = this.transformCurrency(value.toString());
28+
this.transformedValue = this.transformCurrency(value.toString()) + this.WHITESPACE;
2829
}
2930
} else {
3031
this.transformedValue = '';

0 commit comments

Comments
 (0)