alongubkin / alongubkin/angular-datepicker

Using datepicker within a popup

Open
#34 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
290
Forks
126
PR merge metrics
No merged PRs in 30d

Description

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

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

plantlog.html template for popup:

``` javascript

Plant Date


```

options controller for the datepicker:

``` javascript
$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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.