Giter VIP home page Giter VIP logo

Comments (8)

vkbansal avatar vkbansal commented on August 26, 2024

This is a good idea. I'll keep this in mind for next release

from react-contextmenu.

vkbansal avatar vkbansal commented on August 26, 2024

I've released v2.0.0-alpha.1 with this feature. Do check it out. Any feedback is welcome 😃

from react-contextmenu.

alolis avatar alolis commented on August 26, 2024

@vkbansal , is my current code supposed to work if i update to 2.x ? I see a render warning, even if i try to use the SimpleMenu example code as is.

warning.js?8a56:44Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components).

from react-contextmenu.

vkbansal avatar vkbansal commented on August 26, 2024

Not out of the box but check the changes:
https://github.com/vkbansal/react-contextmenu/releases/tag/v2.0.0-alpha.1

And updated Readme:
https://github.com/vkbansal/react-contextmenu/blob/v2/README.md

from react-contextmenu.

alolis avatar alolis commented on August 26, 2024

@vkbansal , reading now. The example i linked though still uses ContextMenuLayer so it probably needs fixing. They probably need some update because usage is not very clear at the moment.

UPDATE: The updated readme was more clear and I am not testing the onClick functionality. I will report back.

from react-contextmenu.

vkbansal avatar vkbansal commented on August 26, 2024

The example i linked though still uses ContextMenuLayer

Fixed it. I was too lazy to update the component name. It should not be confusing now.

from react-contextmenu.

alolis avatar alolis commented on August 26, 2024

@vkbansal , cool. I also used onShow and it seems to be working normally. I haven't found any problems at the moment so you can probably close this issue.

from react-contextmenu.

vkbansal avatar vkbansal commented on August 26, 2024

Cool

from react-contextmenu.

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.