Code Monkey home page Code Monkey logo

Comments (3)

jkarsrud avatar jkarsrud commented on May 13, 2024

Hi @souporserious! Sorry to ping you like this, but did you get a chance to look into this one?

from react-popper.

jkarsrud avatar jkarsrud commented on May 13, 2024

Instead of the repo, I changed this to a codesandbox for easier reproduction https://codesandbox.io/s/qvj9qov62w. I was thinking this might be the same kind of issue as #47, or there's something up with wrapping it in a <VelocityTransitionGroup /> (from https://github.com/twitter-fabric/velocity-react) that will make the positioning read out the offsets incorrectly? I'm not 100% sure how best to debug or how to force-schedule an update. Looking at the code, it looks like I won't be able to create my own applyStyle modifier either, as it's being disabled after spreading this.props.modifiers:

https://github.com/souporserious/react-popper/blob/ef520ee1213f30d3af3f10c6f5b4a04a888deb73/src/Popper.jsx#L96-L100

I tried adding my own computeStyle modifier, but that only broke things further, so I guess it was a naive and incomplete implementation of it. Hopefully the sandbox will make it easier to reproduce and help me figure out what's wrong here :)

from react-popper.

souporserious avatar souporserious commented on May 13, 2024

Sorry for the long wait on this. We expose a helper now to schedule an update when necessary. You should call this whenever a popper needs be replaced and might not have picked up the update.

from react-popper.

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.