mdPickers
mdPickers copied to clipboard
Avoid mobile keyboard popup while selecting date
Is there any way to avoid keyboard popup in mobile
If you're triggering it from an input
element, just add readonly="true"
as attribute to it.
E.g.
<input type="text" readonly="true" ng-model="currentDate" />
Hope this helps.
Thanks for your reply
but i am using like this
<mdp-date-picker name="minMaxDate" ng-model="DepDate" onkeypress="return false;" mdp-min-date="minDate" mdp-max-date="maxDate" mdp-format="DD/MM/YYYY" mdp-open-on-click >
</mdp-date-picker>
Any solution for this
edit the template everywhere you find <input change it by <input readonly="true"
A bit sad that it s not possible to set it as ng-readonly from the directive it self, but I guess it s life ;-)