GithubHelp home page GithubHelp logo

Comments (5)

stackblitz avatar stackblitz commented on April 28, 2024

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

from ant-design.

crazyair avatar crazyair commented on April 28, 2024

Modal 一样 https://stackblitz.com/edit/react-wn1mfy-xhtvpu?file=demo.tsx,后打开的不能盖住前面打开的

from ant-design.

linxianxi avatar linxianxi commented on April 28, 2024

添加 destroyOnClose 就行了,重新 mount z-index 会重新算

from ant-design.

zombieJ avatar zombieJ commented on April 28, 2024

如果非 destroyOnClose 下可以自行控制 zIndex。非叠加型的 Drawer 和 Modal 覆盖顺序是业务逻辑。有的时候需要按照打开顺序,有的则是按照优先程度(比如顶层通知、配置无论其他弹层何时打开都需要盖在最上面),这是不能说谁对谁错的,因此也不会去做特殊处理。

from ant-design.

crazyair avatar crazyair commented on April 28, 2024

我知道我的初始问题是什么了,比如一个 width 500 的抽屉,一个 width 250 的抽屉,虽然打开的时候可以控制后打开的覆盖先打开的,但是如果 open 状态保持,F5 刷新页面,顺序可能就会反过来。

from ant-design.

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.