Coder Social home page Coder Social logo

onSelect not being fired about datepicker HOT 3 CLOSED

qodesmith avatar qodesmith commented on August 24, 2024
onSelect not being fired

from datepicker.

Comments (3)

qodesmith avatar qodesmith commented on August 24, 2024

I'm unable to reproduce this. onSelect is working on this end. What version of datepicker are you using? I've tried it with various input types and a plain div. What element is this.refs.input?

from datepicker.

Arcath avatar Arcath commented on August 24, 2024

this.refs.input is an input box. It gets its date set correctly in there and clicking it brings up the date selector (triggering onShow). The date selector is fully interactive but when I click on a date it doesn't update anything, but it does trigger onHide and disappears.

I shouldn't be because I'm using Etch to render the input as it opens normally and no updating has occurred yet. It could be because Atom is interacting with the events but I'm not sure.

I just wanted to check I wasn't missing something with that code.

from datepicker.

qodesmith avatar qodesmith commented on August 24, 2024

Yea, wish I could see the rest of your code and understand exactly what's going on. But you're correct. You're using datepicker correctly. If you want to tamper under the hood yourself, the onSelect function you provide is fired in the selectDay function. Maybe throw some console.log's in there to see what's going on. Let me know if I can help further.

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.