Git Product home page Git Product logo

Comments (5)

harvzor avatar harvzor commented on August 24, 2024 16

The above is a feature request. For a temporary fix for users affected by this issue, use the following onSelect event.

$('.air-datepicker').datepicker({
    onSelect: function(formattedDate, date, inst) {
        $(inst.el).trigger('change');
    }
});

from air-datepicker.

SergeySagan avatar SergeySagan commented on August 24, 2024 9

It would be great if this was built into the datepicker

from air-datepicker.

kirill-voronov avatar kirill-voronov commented on August 24, 2024

+1

from air-datepicker.

yosypandriyash avatar yosypandriyash commented on August 24, 2024

Try this:
In this case, my datapicker is allowed inside .modal_datapicker div, so you can try addEventListener("click") or jquery on("click") and when click call to a function that returns the date from the datepicker. Its not very good solution but it works:

$(".modal_datepicker").on("click", function(e){
e.preventDefault();
var date = getDataPIckerDate(); //Call to function returns the value of datapicker
if(!date){ //In case, this funciton can returns false if any date is selected
date = "Please select date";
}
$("input.showDateFromDtaepicker").val(date);
})

from air-datepicker.

ulrichkrenn avatar ulrichkrenn commented on August 24, 2024

Hi,

in IE 11
...onSelect: function(formattedDate, date, inst) { $(inst.el).trigger('change');}...
is not called when the date field is cleared (only if the date is changed.). It works with Chrome.

from air-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.