Giter Club home page Giter Club logo

Comments (4)

excid3 avatar excid3 commented on June 16, 2024

PRs welcome!

from tailwindcss-stimulus-components.

rockwellll avatar rockwellll commented on June 16, 2024

@excid3 @cmer check out my PR that addresses this.!

from tailwindcss-stimulus-components.

hms avatar hms commented on June 16, 2024

@A7madXatab at the risk of exposing myself as even more of a rank amateur with JS, could the tests be failing in your PR because you're importing 'stimulus' instead of '@hotwire/stimulus'?

from tailwindcss-stimulus-components.

rockwellll avatar rockwellll commented on June 16, 2024

@hms thanks for the heads up. I've fetched upstream and updated deps in my fork. Now the tests seem to be failing because it says

> [email protected] test /home/runner/work/tailwindcss-stimulus-components/tailwindcss-stimulus-components
> NODE_ENV=test jest


  ●  Cannot log after tests are done. Did you forget to wait for something async in your test?
    Attempted to log "Error disconnecting controller

    TypeError: Cannot read property 'removeEventListener' of null
        at extended.disconnect (/home/runner/work/tailwindcss-stimulus-components/tailwindcss-stimulus-components/src/dropdown.js:93:16)

and it's scary because look at the line

https://github.com/A7madXatab/tailwindcss-stimulus-components/blob/a5501f54d9403817c6dc21951c9cd3e5accfee62/src/dropdown.js#L96

To my surprise it is in fact this line that is causing the errors

document.removeEventListener('keydown', this.keyboardListener);

I've changed it to

document?.removeEventListener('keydown', this.keyboardListener);

And now they are passing. @excid3 anything on this?. Thanks @hms

from tailwindcss-stimulus-components.

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.