Skip to content

Commit c18636d

Browse files
committed
[fix] Apply proper placeholder when using custom currencies
1 parent a07c6c1 commit c18636d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Classes/MPNumericTextField.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ - (void) setDefaults {
7171
self.textAlignment = NSTextAlignmentRight;
7272
}
7373

74+
- (void) setCurrencyCode:(NSString *)currencyCode {
75+
_currencyCode = currencyCode;
76+
// This call will force the reset of the placeholder (if needed):
77+
[self setType:self.type];
78+
}
79+
7480
- (void) setType:(MPNumericTextFieldType)type {
7581
_type = type;
7682

0 commit comments

Comments
 (0)