Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Datepicker: Problem with DatepickerMode #2180

Closed
wleelavivat opened this issue May 9, 2014 · 4 comments
Closed

Datepicker: Problem with DatepickerMode #2180

wleelavivat opened this issue May 9, 2014 · 4 comments

Comments

@wleelavivat
Copy link

http://plnkr.co/edit/sr1Zwe4QD3yxoZ93GCrV?p=preview

When passing datepicker-mode as a string, the datepicker cannot switch between each mode

Working:
HTML:

JS:
$scope.mode = 'month';
Not Working:

This also become a problem trying to pass datepickerMode through from datepickerOptions to create datepickerPopup

@bekos
Copy link
Contributor

bekos commented May 10, 2014

@wleelavivat datepicker-mode is a two-way binded value, that's why it cannot support string values, but I see the problem with the datepicker-mode in the popup. I will fix soon. Thx for reporting.

bekos added a commit to bekos/bootstrap that referenced this issue May 11, 2014
@bekos bekos closed this as completed in 63ae06c Jun 11, 2014
dearlordylord pushed a commit to dearlordylord/bootstrap that referenced this issue Jun 18, 2014
dearlordylord pushed a commit to dearlordylord/bootstrap that referenced this issue Jun 18, 2014
@lhahne
Copy link

lhahne commented Jul 7, 2014

Hi. When are you planning to release this fix? We are using angular-ui bootstrap through bower and would need this fix.

@boroth
Copy link

boroth commented Jul 25, 2014

It also seems that datepicker-mode isn't available when added on an <input> element.

For some reason i'm having issues with plnkr at the moment, but here's some sample HTML:

<input type="text" 
           class="form-control input-lg"
           ng-model="patient.details.dob"
           ng-focus="open($event, 'dob')"
           is-open="dobDatepickerPopupOpened.value"
           datepicker-mode="'year'"
           show-weeks="false"
           datepicker-popup="MM/dd/yyyy"
           datepicker-options="dateOptions"
           placeholder="MM/DD/YYYY"
           max-date="dateToday" />

@boroth
Copy link

boroth commented Jul 25, 2014

Clarification: no matter what I change datepicker-mode to on my element, it doesn't change the initial mode when the datepicker is opened.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants