material icon indicating copy to clipboard operation
material copied to clipboard

md-datepicker not showing

Open Andrew-Lahikainen opened this issue 9 years ago • 24 comments

Actual Behavior:

  • What is the issue? * md-datepicker does not show any dates to select. It is completely blank.
  • What is the expected behavior? User should be able to select dates.

CodePen (or steps to reproduce the issue): *

  • CodePen Demo which shows your issue: http://codepen.io/Lahikainen/pen/woZxBK

Angular Versions: *

  • Angular Version: 1.6.0, 1.5.8
  • Angular Material Version: 1.1.1

Additional Information:

  • Browser Type: * All browsers
  • Browser Version: * Chrome 55, Firefox 51, Edge 38
  • OS: * Windows
  • Stack Traces: None

Screenshots: image

Andrew-Lahikainen avatar Dec 22 '16 19:12 Andrew-Lahikainen

It seems the problem presents itself when upgrading to Angular 1.6.

Try this in your app:

angular.module('myApp', [])
  .config(function($compileProvider) {
    $compileProvider.preAssignBindingsEnabled(true);
  });

It worked for me.

victordelacruz avatar Dec 22 '16 20:12 victordelacruz

Yep that worked for me victor, thanks for the tip!

Andrew-Lahikainen avatar Dec 23 '16 02:12 Andrew-Lahikainen

Was experiencing the same issue in Chromium (node-webkit) and @victordelacruz solution worked for me aswell. Thanks.

pgrodrigues avatar Dec 27 '16 14:12 pgrodrigues

Thank you @victordelacruz for your solution, i was near to give up !!!

Blair2004 avatar Dec 31 '16 21:12 Blair2004

Something I found before I implamented @victordelacruz solution.

When you open the calendar via the triangle nothing shows up. but if you scroll a bunch while inside the calendar either up or down the months start to show up. I don't know what causes this I just found it interesting.

batsauto avatar Jan 04 '17 00:01 batsauto

It worked for me.

muchrm avatar Jan 20 '17 07:01 muchrm

I believe this has been fixed in the latest release (1.1.3). Can someone else verify?

http://codepen.io/topherfangio/pen/ggzamo

topherfangio avatar Feb 02 '17 22:02 topherfangio

I believe this has been fixed in the latest release (1.1.3). Can someone else verify?

According to my tests I believe it has been fixed with this update.

batsauto avatar Feb 03 '17 03:02 batsauto

Awesome! I am going to go ahead and close this. If someone else continues to experience issues, please comment and we will reopen!

topherfangio avatar Feb 03 '17 18:02 topherfangio

Enabling "preAssignBindings" fixed my datepicker too, however, the rest of my webpage goes white while selecting a date.

Using Angular 1.6.2, Angular Material 1.1.1, and Google Chrome. Any tips?

akirna avatar Mar 15 '17 20:03 akirna

Try updating your angular material to 1.1.3. This update cleared out the issue for me.

batsauto avatar Mar 15 '17 20:03 batsauto

Nah, the whole webpage goes white when I update past Angular Material 1.1.1 for some reason. I'm sourcing the framework from googleapis and they don't seem to have 1.1.2+ yet.

akirna avatar Mar 16 '17 15:03 akirna

Hi everyone,

i post that comment cause i try to implement @victordelacruz solution but it does not work, however i am in 1.1.4 version of angular-material.

My problem is when i put my crhome browser in 90% size, my md-datepicker is blank, i have to scroll in it to make it appear :/

datetimeblank

thomasmoreaumaster avatar Oct 05 '17 09:10 thomasmoreaumaster

The problem seems to be back again.

Screenshot - image

Months appear again when scrolled, though.

whoisarpit avatar Oct 28 '17 20:10 whoisarpit

same issue with me i am using the "@angular/material": "^5.0.0-rc0","@angular/core": "^5.0.3", can anyone tell me where should i put

angular.module('myApp', [])
    .config(function($compileProvider) {
      $compileProvider.preAssignBindingsEnabled(true);
    });

so i can check if that fix the problem .

ashutoshbibyan avatar Jan 22 '18 07:01 ashutoshbibyan

@ashutoshbibyan Please submit Angular Material questions here and issues here. This repo is for AngularJS Material.

Splaktar avatar Feb 11 '18 07:02 Splaktar

@thomasmoreaumaster I'm having the same issue, on Macbook Pro when zooming the datepicker starts off blank but then dates appear once scrolled. Any fix yet?

image

Arns avatar Feb 21 '18 15:02 Arns

More specifically, I'm having the issue when zooming out (90% and less). AngularJS Material 1.1.7 does not fix it. The compileProvider preAssignBindings option did not work either.

Arns avatar Feb 21 '18 16:02 Arns

In my case, I've narrowed it down to being directly related to the datepicker having an "md-max-date" that is before the current date. It DOES NOT have an issue if you reverse it: "md-min-date" that is AFTER the current date.

Also seems that the reason it is missing is because the virtual repeat offset has not applied the translate css yet...

Arns avatar Feb 21 '18 17:02 Arns

digging deeper yet: localhost_8088_travel_1445000000013_search_1533000000016

Arns avatar Feb 21 '18 18:02 Arns