Skip to content

Commit 69e99e5

Browse files
manasa4manasa
authored andcommitted
Time payload issue fixed
1 parent 09a4919 commit 69e99e5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/angular-sdk-components/src/lib/_components/field/time/time.component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,12 @@ export class TimeComponent implements OnInit, OnDestroy {
172172
}
173173

174174
fieldOnBlur(event: any) {
175-
const value = event?.target?.value;
175+
let value = event?.target?.value;
176+
const hhmmPattern = /^\d{2}:\d{2}$/;
177+
if (hhmmPattern.test(value)) {
178+
value = `${value}:00`; // append ":00"
179+
}
180+
176181
handleEvent(this.actionsApi, 'changeNblur', this.propName, value);
177182
}
178183

0 commit comments

Comments
 (0)