File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
packages/core/src/components Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments