Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using datepicker within a popup #34

Open
jlt0022 opened this issue Nov 10, 2014 · 1 comment
Open

Using datepicker within a popup #34

jlt0022 opened this issue Nov 10, 2014 · 1 comment

Comments

@jlt0022
Copy link

jlt0022 commented Nov 10, 2014

So, here is an odd issue, I am using the datepicker within a template driven pop-up:
Controller calling the popup:

      templateUrl: 'templates/plantlog.html',
      title: vName,
      scope: $scope, 
      buttons: [
        { 
          text: 'cancel'},
        {
          text: '<b>Plant</b>',
          type: '',
.............

plantlog.html template for popup:

   <label class=" item plantItem" >
    <span class="input-label ">Plant Date</span>
          <input type="text" class="plantArea" pick-a-date="date" pick-a-date-options="options" placeholder="{{todayDate}}" ng-model="data.date"/>                  
    </label>

options controller for the datepicker:

  $rootScope.options = {
  format: 'yyyy-mm-dd', // ISO formatted date
    onClose: function(e) {
      alert('Worked!')   
    }
  }

Everything works as expected, popup pops up, but then when you click on the input field for the datepicker, the datepicker slides in but then you are unable to change the date to anything and the buttons down work. Also, if you touch any dates below the middle it the keyboard pops up and lets you type. Is there some sort of a conflict between them?

@ymc-sise
Copy link

I can confirm this bug report within an Ionic Modal. Same behaviour happens.

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

No branches or pull requests

2 participants