Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit 75b8a49

Browse files
author
Manuel Puentes Reed
committed
Changed dateprevent-mobile attribute to datepicker-mobile, default 'true'
1 parent c894d42 commit 75b8a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/angular-datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
, date = new Date()
158158
, isMouseOn = false
159159
, isMouseOnInput = false
160-
, preventMobile = ( typeof attr.preventMobile !== 'undefined' )
160+
, preventMobile = ( typeof attr.datepickerMobile !== 'undefined' && attr.datepickerMobile !== 'false' )
161161
, datetime = $locale.DATETIME_FORMATS
162162
, pageDatepickers
163163
, hours24h = 86400000

0 commit comments

Comments
 (0)