Coder Social home page Coder Social logo

Cannot change month/year about toscani HOT 3 OPEN

tordans avatar tordans commented on June 15, 2024
Cannot change month/year

from toscani.

Comments (3)

jme783 avatar jme783 commented on June 15, 2024

We are implementing toscani and are currently experiencing this same issue. Is there any update on how to correct this?

from toscani.

kpowerinfinity avatar kpowerinfinity commented on June 15, 2024

Having the same issue. Is there an update for this issue? Thanks!

from toscani.

wgaggioli avatar wgaggioli commented on June 15, 2024

From what I can tell, this is caused by the rather cavalier call to unbind here: https://github.com/zdfs/toscani/blob/master/paymentInfo/assets/scripts/app.js#L234

This unbinds the keydown handler within inputmask, which causes inputmask to never reset its skipKeyPressEvent flag.

I can verify that removing line 234 fixes the issue. However, the part I can't figure out is why it's working for the other inputs, because unbind is used without regard throughout this whole plugin. I tried to track it down, but ultimately had to pull out.

I would submit a PR for this fix, but I don't fully understand why you are calling unbind so much to begin with. Should you be using namespaces, or do you actually mean to detach all event handlers? I am happy to submit a PR to fix the issue with some further clarification.

from toscani.

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.