Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when I Use PersianDatePicker in a Modal in a Razor Page #60

Open
mehdikangarloo opened this issue Nov 7, 2023 · 14 comments
Open
Assignees

Comments

@mehdikangarloo
Copy link

Hi When I Use PersianDatePicker in a Modal in a Razor page an error Raise with this message in console:
datepicker.min.js:106 Uncaught TypeError: selectedObject.includes is not a function
at HTMLDocument. (datepicker.min.js:106:34)
at HTMLDocument.dispatch (jquery-3.1.1.min.js:3:10315)
at q.handle (jquery-3.1.1.min.js:3:8342)

@mehdikangarloo
Copy link
Author

there is a solution in Stackoverflow site but your code in github appears incomplete and i cant use it

@farshaddavoudi
Copy link
Owner

Hi Mehdi, thanks for sharing the issue here. Are you using the latest version of the library [3.0.2]?

@mehdikangarloo
Copy link
Author

mehdikangarloo commented Nov 7, 2023 via email

@farshaddavoudi
Copy link
Owner

farshaddavoudi commented Nov 7, 2023

So does this issue persist when you use it outside the modal? If not, how do you make the modal? I'm suspicious of the jQuery conflict in your project. Has jQuery been added to your project for any reason (aside from this project)? Any chance of showing your code or at least the related section?

@EsmaeelAmarloo
Copy link

Hi .when i set parameter Value to '1402/01/01' and then click on input, selected day in datepicker is today not '1402/01/01'

@farshaddavoudi
Copy link
Owner

Hi @EsmaeelAmarloo
Let me check. By the way, I hoped you could create a new issue as this issue is not related to the original issue.

@mehdikangarloo
Copy link
Author

mehdikangarloo commented Nov 21, 2023 via email

@hache87
Copy link

hache87 commented Mar 2, 2024

سلام آقاي کنگرلو
من هم مشکل شمارا دارم. محبت ميفرمائيد کد خود را برامن نيز بفرستيد.
mohraz94@chmail.ir

@farshaddavoudi
Copy link
Owner

@hache87
سلام، وقت بخیر
آقای کنگرلو برام کدی نفرستادن و فکر کنم منظورشون راه حل نبود،‌ کدی که مشکل داشتن رو گفتن. حالا شما اگه علاقه دارید یه پروژه خیلی خلاصه و کوچیک که این مشکل توش وجود داشته باشه برای من بفرستید تا بررسیش کنم.

f.davoudi.r@outlook.com

farshaddavoudi added a commit that referenced this issue Mar 5, 2024
@farshaddavoudi
Copy link
Owner

@hache87

Hi, the package has been updated to v3.3 to cover your case. Updating it should fix your issue.

@hache87
Copy link

hache87 commented Mar 5, 2024

Thank you for your attention. Its solved the problem

@farshaddavoudi
Copy link
Owner

YW

@rezapaydar
Copy link

من هم این مشکل رو دارم و داخل مدال این رو برام نمایش نمیده حتی وقتی داخل مدال فراخوانیش میکنم هم نمایشش نمیده

@farshaddavoudi
Copy link
Owner

@rezapaydar
سلام وقتتون بخیر ممنون میشم اول مطمئن بشید که به آخرین نسخه آپدیت هست بعد اگه مشکل همچنان ادامه داشت در صورت امکان یه New Project بزنید و در خلاصه ترین حالت ممکن این مشکل رو شبیه سازی کنید تا من بتونم روش کار کنم؟

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

5 participants