In my Ionic app built with AngularJS, I have a form where the date and time are displayed separately but share the same data-ng-model:
<input type="date" id ="actualVisitDate" data-ng-model="actualVisitDate" required>
<input type="time" id ="actualVisitTime" data-ng-model="actualVisitDate" required>
However, when running on a device, if I try to clear either the date or time field, it ends up clearing both. How can I make sure that only the selected field is cleared without affecting the other? Here's a screenshot for reference: