Skip to content

Commit 36b1069

Browse files
committed
fix(date-input,time-input): remove renderItem from ProxyCmp inputs to enable custom rendering #IX-3668
1 parent 7c6f636 commit 36b1069

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/core/src/components/date-input/date-input.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -483,9 +483,9 @@ export class DateInput implements IxInputFieldComponent<string | undefined> {
483483
}
484484

485485
render() {
486-
const invalidText = this.isInputInvalid
487-
? this.invalidText || this.i18nErrorDateUnparsable
488-
: this.invalidText;
486+
const invalidText =
487+
this.invalidText ??
488+
(this.isInputInvalid ? this.i18nErrorDateUnparsable : undefined);
489489

490490
return (
491491
<Host

packages/core/src/components/time-input/time-input.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,9 @@ export class TimeInput implements IxInputFieldComponent<string> {
497497
}
498498

499499
render() {
500-
const invalidText = this.isInputInvalid
501-
? this.invalidText || this.i18nErrorTimeUnparsable
502-
: this.invalidText;
500+
const invalidText =
501+
this.invalidText ??
502+
(this.isInputInvalid ? this.i18nErrorTimeUnparsable : undefined);
503503

504504
return (
505505
<Host

0 commit comments

Comments
 (0)