question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When I have flatpickr with enableTime: true and I choose date and time, then I change config with fp.set('enableTime', false) and time input is still rendering, but flatpickr close after select date.

Demo

https://jsfiddle.net/9wuc4sqe/1/

Your Environment

  • flatpickr version used: 4.5.2
  • Browser name and version: Chrome 69
  • OS and version: Windows 10

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
a4armaancommented, Apr 25, 2021

@padinko flatpickr doesn’t support dynamically changing some variables like enableTime, showMonths, etc yet. For now, you can just re-create the flatpickr instance.

This point should be mentioned in the docs.

0reactions
padinkocommented, Mar 6, 2020

@SalkiDixit you will need to destroy flatpickr and create new one with updated settings

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dynamic Configuration - CircleCI
CircleCI's dynamic configuration feature uses setup workflows. A setup workflow can contain jobs that compute pipeline parameters, which can then be passed into ......
Read more >
What is Dynamic Configuration Management? - Humanitec
Dynamic configuration management is an approach to configuration management whereby an entire application, including its dependent ...
Read more >
Dynamic configuration at Twitter
Dynamic configuration is the ability to change the behavior and functionality of a running system without requiring application restarts.
Read more >
A dynamic config library for Node.js implemented in TypeScript
Dynamic Config is designed to be highly adaptable to a variety of requirements. It is built on a plugin architecture that allows it...
Read more >
A Simple Implementation of Dynamic Configuration - Medium
Dynamic configuration can be thought of as implementing the Observer pattern in a fully distributed manner. In this case, the subjects are ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found