Giter VIP home page Giter VIP logo

Comments (6)

luventa avatar luventa commented on July 29, 2024 1

I've fixed your issue and the demo is here Demo (will work correctly after new version is published).
When dateFormat is set, the date string which you are using for v-model needs to follow the format.

I figured out a way to validate the date string for single mode but there are still too may validations further... So I gave up to implement date string validation.

Feel free to reopen this issue. Thanks for report this again. 😄

from datepicker.

luventa avatar luventa commented on July 29, 2024

I'm looking into it.

update 1: config causes initial date is not applied.

update 2: found useful info here...config options

date string needs follow dateFormat

I'm trying to fix this now.

from datepicker.

ankurk91 avatar ankurk91 commented on July 29, 2024

@luventa
I dont think it is config issue, you can remove :config and try

from datepicker.

luventa avatar luventa commented on July 29, 2024

yes, right, flatpickr wont update its selected date unless setDate is called.
Still working on it.

from datepicker.

ankurk91 avatar ankurk91 commented on July 29, 2024

Try adding this:

watch: {
  // add watch on value
  value(newValue){   
    this.datepicker.setDate(newValue, true);
  }
},

from datepicker.

luventa avatar luventa commented on July 29, 2024

Already did that but the dateFormat will interrupt date convert. But set prop value to Date type is not a good choice. Also I found some thing else, need to refactor the component.

from datepicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.