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

wrong directions? #1123

Closed IIpepeII closed 5 years ago

IIpepeII commented 5 years ago

Hi!

I think my problem is so special(or I'm special I really don't know @.@ ). So in my pickadate panel the Next Month button is at the left side, and the Previous Month button is at right side, and the days are in a strange direction as well. What happened? I didn't find anything about this in the documentation. screenshot 20

dateConfig = { firstDay: 1, weekdaysShort: ['Mon', 'Tue', 'Wen', 'Thu', 'Fri', 'Sat', 'Sun'], showMonthsShort: true, clear: 'Clear', close: 'Cancel', today: '', formatSubmit: 'yyyy-mm-dd', //format for the server disable: [ 5, 6, { from: [0, 0, 0], to: [ new Date().getFullYear(), new Date().getMonth(), new Date().getDate() ] } ] };

Please help me!

DanielRuf commented 5 years ago

Hi @IIpepeII,

Did you set some rtl hint in your code?

IIpepeII commented 5 years ago

I don't think so! At first I accidentally linking the rtl.css but for while it is not part of the code. I deleted cache and make everything to forget about it, but my panel is still in wrong direction. :/

DanielRuf commented 5 years ago

Can you provide a codepen which reproduces this?

IIpepeII commented 5 years ago

Sorry for long waiting! So, I rebuilt the project from zero. And now it works I don't know how the rtl code remains in the old one. But now it works. So thy guys!

DanielRuf commented 5 years ago

Hi @IIpepeII, thanks for the update and letting us know, that it works now.