Giter Club home page Giter Club logo

popper-max-size-modifier's People

Contributors

atomiks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

popper-max-size-modifier's Issues

Does not work if the boundary element shrinks, then grows

The popper minWidth is never updated after the boundary element:

  • shrinks below the width of the popper (works)
  • then grows above the width of the popper (this doesn’t work)

However, there’s no problem with the height and resizing the boundary element.

PS. Thanks for a great library 🙏

Issue with initial flip calculation

Reproduced here: https://codesandbox.io/s/fragrant-grass-vv5wq

Expected behaviour

The popper element opens to the top because it has a minimum height.

Actual behavior

The popper element opens to the bottom and only flips when scrolling.

The Readme has one remark which might be the solution but I don't get it:

Sometimes you may want the flip modifier to take precedence in cases where the maxSize modifier will make the popper too small

What am I doing wrong?

Handle `detectOverflow` options

If the user has configured preventOverflow and/or flip with different options from the default, there will likely be a problem.

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.