Code Monkey home page Code Monkey logo

Comments (3)

benbowes avatar benbowes commented on June 15, 2024

Progress update

I am getting pretty close (next week or so) to releasing version 5.0.0.

Work on this can be tracked at https://github.com/benbowes/react-responsive-select-next.

If you would like to try the new version in your JS or TS project then install it and try it with npm i react-responsive-select-next -D I'd love to know how it goes either here, or via my gmail account.

It should be exactly the same experience as using react-responsive-select for JS and TS projects alike.

A new thing!

I have added a new onListen function prop. This prop was created to handle those situations when you probably want to change things outside of the select component.

e.g. When the component opens on small screen, add a class to the body tag with overflow-y: hidden to stop the body from also scrolling.

onListen function prop returns this signature:

param type description
isOpen Boolean Whether the options panel is currently open or closed
name string The name prop you passed into the ReactResponsiveSelect component
actionType String The internal action type that was fired within RRS
<ReactResponsiveSelect
    ...
    onListen={(isOpen, name, actionType) => {
        console.log(isOpen, name, actionType);
    }}
/>

from react-responsive-select.

benbowes avatar benbowes commented on June 15, 2024

Here is the PR #119

from react-responsive-select.

benbowes avatar benbowes commented on June 15, 2024

released 5.0.0 to npm https://www.npmjs.com/package/react-responsive-select

from react-responsive-select.

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.