DesignRevision / shards-ui

🎨Shards is a beautiful & modern Bootstrap 4 UI kit packed with extra templates and components.

Home Page:https://designrevision.com/downloads/shards/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

datepicker fails with jquery3

BobWalsh opened this issue · comments

With:
$('.datepicker-shard').datepicker({});

When using jQuery JavaScript Library v1.12.4 it works as expected.
When using jQuery JavaScript Library v3.2.1 throws:
jquery3.self-06c43429d1047ce3f355da574d8a9750209971b8b1b8f264f91f5518c5fcc060.js?body=1:3861 jQuery.Deferred exception: $(...).datepicker is not a function TypeError: $(...).datepicker is not a function at HTMLDocument.<anonymous> (http://localhost:3000/assets/cards.self-03f3953c5a9bd838299ccfa17624094c86b077ce6d4df616eee57fc81d298ca5.js?body=1:4:26) at mightThrow (http://localhost:3000/assets/jquery3.self-06c43429d1047ce3f355da574d8a9750209971b8b1b8f264f91f5518c5fcc060.js?body=1:3584:29) at process (http://localhost:3000/assets/jquery3.self-06c43429d1047ce3f355da574d8a9750209971b8b1b8f264f91f5518c5fcc060.js?body=1:3652:12) undefined jQuery.Deferred.exceptionHook @ jquery3.self-06c43429d1047ce3f355da574d8a9750209971b8b1b8f264f91f5518c5fcc060.js?body=1:3861 process @ jquery3.self-06c43429d1047ce3f355da574d8a9750209971b8b1b8f264f91f5518c5fcc060.js?body=1:3656 setTimeout (async) (anonymous) @ jquery3.self-06c43429d1047ce3f355da574d8a9750209971b8b1b8f264f91f5518c5fcc060.js?body=1:3690 fire @ jquery3.self-06c43429d1047ce3f355da574d8a9750209971b8b1b8f264f91f5518c5fcc060.js?body=1:3318 fireWith @ jquery3.self-06c43429d1047ce3f355da574d8a9750209971b8b1b8f264f91f5518c5fcc060.js?body=1:3448 fire @ jquery3.self-06c43429d1047ce3f355da574d8a9750209971b8b1b8f264f91f5518c5fcc060.js?body=1:3456 fire @ jquery3.self-06c43429d1047ce3f355da574d8a9750209971b8b1b8f264f91f5518c5fcc060.js?body=1:3318 fireWith @ jquery3.self-06c43429d1047ce3f355da574d8a9750209971b8b1b8f264f91f5518c5fcc060.js?body=1:3448 ready @ jquery3.self-06c43429d1047ce3f355da574d8a9750209971b8b1b8f264f91f5518c5fcc060.js?body=1:3921 completed @ jquery3.self-06c43429d1047ce3f355da574d8a9750209971b8b1b8f264f91f5518c5fcc060.js?body=1:3931 jquery3.self-06c43429d1047ce3f355da574d8a9750209971b8b1b8f264f91f5518c5fcc060.js?body=1:3870 Uncaught TypeError: $(...).datepicker is not a function at HTMLDocument.<anonymous> (cards.self-03f3953c5a9bd838299ccfa17624094c86b077ce6d4df616eee57fc81d298ca5.js?body=1:4) at mightThrow (jquery3.self-06c43429d1047ce3f355da574d8a9750209971b8b1b8f264f91f5518c5fcc060.js?body=1:3584) at process (jquery3.self-06c43429d1047ce3f355da574d8a9750209971b8b1b8f264f91f5518c5fcc060.js?body=1:3652)

commented

Hi BobWalsh,
I tested this behaviour and can not reproduce this. Can u give us more information about ur implementation? Full code in JS Fiddle for example?

Hello, I tried to reproduce this issue as you said but I failed to achieve the same results.
Would you mind to share more information? Such as what browser do you use or anything else that can be relevant to this case.

I tried to reproduce it too but failed so I'm closing it for now until we get more details.