[ACS-4985] Resolved issue where typing a special character after adding some numbers in the 'In the last' input field would clear out the field

This commit is contained in:
swapnil.verma
2023-07-27 11:14:48 +05:30
committed by Jatin_Chugh
parent fd2ee246ba
commit fb9c13a91a
@@ -203,6 +203,6 @@ export class SearchDateRangeAdvancedComponent implements OnInit, OnDestroy {
onLastDateValueChanged(event: Event) {
const value: string = event.target['value'];
event.target['value'] = value.replace(/[-.]*0*([1-9]*\d*)/g, '$1');
event.target['value'] = value.replace(/\D*0*([1-9]*\d*)/g, '$1');
}
}