mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[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:
committed by
Jatin_Chugh
parent
fd2ee246ba
commit
fb9c13a91a
+1
-1
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user