-
Notifications
You must be signed in to change notification settings - Fork 23
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
fp.setDate is not a function #36
Comments
Your example works fine (except that you're using an Seems like something else in your configuration is going wrong. Please make sure you're using updated versions of all dependencies. |
On the web IDs must be unique to the page, you cannot use the same Change your IDs to make them unique. <Flatpickr bind:value={selectedDateTime} element="#my-picker">
<div class="flatpickr" id="my-picker">
<input
type="text"
class="my-custom-class"
placeholder="Select Date..."
data-input
/>
<button type="button" data-clear>Clear</button>
</div>
</Flatpickr>
<Flatpickr bind:value={selectedDateTime} element="#my-picker2">
<div class="flatpickr" id="my-picker2">
<input
type="text"
class="my-custom-class"
placeholder="Select Date..."
data-input
/>
<button type="button" data-clear>Clear</button>
</div>
</Flatpickr> |
If you need to do this programmatically in a component, you can use something like |
fp.setDate is not a function
.The text was updated successfully, but these errors were encountered: