amsul / pickadate.js

The mobile-friendly, responsive, and lightweight jQuery date & time input picker.
http://amsul.ca/pickadate.js
MIT License
7.7k stars 1.01k forks source link

the dates reverse from right to left in the calendar #1099

Closed Janny2018 closed 6 years ago

Janny2018 commented 6 years ago

I posted this issue in #1095 comment, and Daniel suggested me to create a new issue, so I created a new issue(#1098), but after Submit that issue, it became closed, so I create the same issue here.

the screen shot is as below

screenshot

the code is part of an asp.net MVC project (semi-finished product), and the project will access database,the View file(*.cshtml file) is in the attached files (item.zip)

I found though the screen shows the reversed result, but in the generated HTML code (after screen show up I press F12 and copy whole element to save as a html file, pls refer to the attached file --> generated.html.Code.txt) , the result will be correct. and I also found something may cause this problem, but I don't know why ? refer to the following ,

f12 screen shot

why the value of the direction attribute is rtl ? does this mean right to left ? and what in my code causes this ?

item.zip generated html Code.txt

I don't know what happened, can someone help me to figure out the problem ? Thanks

Janny2018 commented 6 years ago

I found it seems that the rtl.css causes this problem, and when I use code to set the CSS style for the picker class, everything becomes normal. But I still don't know what in my code causes this case.

DanielRuf commented 6 years ago

Well, that is how dir="rtl" as setting should work.