farshaddavoudi / Blazor.PersianDatePicker

A Jalali (Persian) and Gregorian (Miladi) dual datepicker library for Blazor applications
MIT License
64 stars 13 forks source link

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

Open mehdikangarloo opened 11 months ago

mehdikangarloo commented 11 months ago

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 commented 11 months ago

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

farshaddavoudi commented 11 months ago

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

mehdikangarloo commented 11 months ago

Yes i am using the last version

On Tue, 7 Nov 2023, 10:53 Farshad Davoudi, @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/farshaddavoudi/Blazor.PersianDatePicker/issues/60#issuecomment-1797945317, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCLP6C57PGCGHL3SLAWI2BDYDHOYVAVCNFSM6AAAAAA7AWJD6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJXHE2DKMZRG4 . You are receiving this because you authored the thread.Message ID: @.***>

farshaddavoudi commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

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 commented 11 months ago

سلام اقای داودی modal من در یک razor page از طریق یک بولین و ست کردن مقدار اون به TRUEنمایش داده میشه نمونه کدم رو فردا از سر کار براتون میفرستم من از JQUERY برای ارسال پیام و دریافت تاییدیه استفاده کردم

On Tue, 7 Nov 2023, 15:51 Farshad Davoudi, @.***> wrote:

So does this issue persist when you use it outside the modal? If no what is the modal build from? 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?

— Reply to this email directly, view it on GitHub https://github.com/farshaddavoudi/Blazor.PersianDatePicker/issues/60#issuecomment-1798395992, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCLP6CYF2Q226BCYPNETSTLYDIRUVAVCNFSM6AAAAAA7AWJD6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJYGM4TKOJZGI . You are receiving this because you authored the thread.Message ID: @.***>

hache87 commented 7 months ago

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

farshaddavoudi commented 7 months ago

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

f.davoudi.r@outlook.com

farshaddavoudi commented 7 months ago

@hache87

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

hache87 commented 7 months ago

Thank you for your attention. Its solved the problem

farshaddavoudi commented 7 months ago

YW

rezapaydar commented 1 month ago

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

farshaddavoudi commented 1 month ago

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