Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
431 views
in Technique[技术] by (71.8m points)

google chrome - AngularJS material Datepicker shows different views of the same date at start

I am using the Datepicker control from Angular Material and I want to explain a strange behaviour. This only occurs on the chrome browser. This control is shown on the demo: https://material.angularjs.org/1.1.1/demo/datepicker When I clicki a calendar icon below "Standard date-picker" the picker looks like this: whole month picker There is a whole month January and the current date 29 at the bottom.

But when I click an icon below "Opening the calendar when the input is focused" or "Inside a md-input-container" the picker looks different: current in first line Current day January 29 is in the first line and there is Feb below.

I wanted to check it by editing on CodePen using the icon in right top corner. The stranger thing is that on CodePen there is no such issue and the picker shows a whole current month. CodePen view My goal is the control shows the whole month like in the firs case. In my application it looks like in the second case with current day on the top. Can someone advise what I should do?

question from:https://stackoverflow.com/questions/65952061/angularjs-material-datepicker-shows-different-views-of-the-same-date-at-start

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...