mdPickers icon indicating copy to clipboard operation
mdPickers copied to clipboard

Avoid mobile keyboard popup while selecting date

Open Nagarajtech opened this issue 8 years ago • 3 comments

Is there any way to avoid keyboard popup in mobile

Nagarajtech avatar Jun 16 '16 11:06 Nagarajtech

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.

albertonaperijr avatar Jun 23 '16 10:06 albertonaperijr

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

Nagarajtech avatar Jun 24 '16 09:06 Nagarajtech

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 ;-)

anymos avatar Jul 25 '16 08:07 anymos