Giter Site home page Giter Site logo

Comments (5)

benitolopez avatar benitolopez commented on June 20, 2024

Yes, you're right.

You can use this CSS to fix the issue:

.datepicker__month-day--with-extra span {
    pointer-events: none;
}

This assumes that you are appending a span element.

I'll add the same fix in the demo. But this CSS can't be included in the library because I cannot know what element is being appended. Everyone can append the element they want.

from hotel-datepicker.

solidaverage avatar solidaverage commented on June 20, 2024

Great. Thank you.

from hotel-datepicker.

solidaverage avatar solidaverage commented on June 20, 2024

Oops, I spoke to soon. I just tested it and the CSS fix works for the first time you select arrival/departure, but then it stops working (can't click on extra text anymore).

Inspecting the page, it looks like after the first range select, the class "datepicker__month-day--with-extra" is being removed from the day <td>. (or probably all the classes on the are replaced after departure date is selected, but the extra text one isn't being added back)

I just tested on the demo site and that removal of that class after first range select is there too.

I think I can work around this with different CSS, but I think the code needs to be updated to ensure that the extra text class is always there.

from hotel-datepicker.

benitolopez avatar benitolopez commented on June 20, 2024

Correct. Fixed in 4.6.2.

from hotel-datepicker.

solidaverage avatar solidaverage commented on June 20, 2024

Thanks

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