Within my angularjs
application, I have implemented a jquery datepicker
inside a div
.
<div class="col-md-6" ng-show="!viewMode">
<input type="text" readonly focus-me="{{ DateOfBirthFocus }}" id="DateOfBirth" name="DateOfBirth" ng-model="DateOfBirth" placeholder="01-jan-1991" class="form-control date-picker" ng-keydown="DateOfBirth_KeyDown($event)" ng-blur="DateOfBirthFocus=false;" required>
</div>
Initially, when the page loads, the datepicker functions correctly. However, if I hide the div using ng-show
and then show it again, the datepicker no longer opens the calendar view as expected. I attempted a workaround from this solution but unfortunately, it did not resolve the issue. Any ideas on what I might be doing wrong or what I might be overlooking?
Any assistance would be greatly appreciated.