Coder Social home page Coder Social logo

Comments (7)

alexandrbig avatar alexandrbig commented on June 12, 2024 1

It is caused by #1923

@tantawyk @STRML guys you were discussing simple clicks which now are broken

@STRML wrote:

I think it was that it didn't make much sense to show the placeholder only on onDragStart in case it was a simple click with no movement.

Why is it important?
We have dozen of widgets with different clickable controls which after the update are not working. Is it possible to fix both issues - mentioned in PR and current one?

Thank you in advance.

from react-grid-layout.

STRML avatar STRML commented on June 12, 2024 1

It's important not to render a placeholder on a click - otherwise you would see a transparent red widget flash when you're just trying to click a button. It appears we have indeed actually broken this in 1.4.3+.

I am swamped with other commitments right now, if you can identify the issue please open a PR. Please include a test in that PR so we don't break it again! This interaction is complex.

from react-grid-layout.

gripzyyy avatar gripzyyy commented on June 12, 2024 1

It's important not to render a placeholder on a click - otherwise you would see a transparent red widget flash when you're just trying to click a button. It appears we have indeed actually broken this in 1.4.3+.

I am swamped with other commitments right now, if you can identify the issue please open a PR. Please include a test in that PR so we don't break it again! This interaction is complex.

For me there seems to be the issue with Z-index, whenever I manually add a Z-index to my DOM elements it works. On click the red placeholder that appears has a Z-index of 3, so it's above the actual rendered DOM elements if you do not manually put a Z-index on them.

from react-grid-layout.

gripzyyy avatar gripzyyy commented on June 12, 2024 1

It also appears that in 1.4.4 the red placeholder is rendered when the mouse is down not when the mouse starts moving, this along with my previous comment stating the Z-index issue creates issues, maybe this commit introduced the issue while trying to fix another issue: 57bba6b

from react-grid-layout.

hunxjunedo avatar hunxjunedo commented on June 12, 2024

I'm pretty sure its intended in order to maintain interactivity.

from react-grid-layout.

alexandrbig avatar alexandrbig commented on June 12, 2024

More over, it prevents clicks inside the container.

See the behavior in codesandboxes:
new: https://codesandbox.io/p/sandbox/cranky-bird-6fgmhf
old: https://codesandbox.io/p/sandbox/zen-morning-vjqt5y

Click is is still possible

Normal way

Adding draggableCancel class to button.
Not suitable in my case

Strange way

When started dragging container on a button on release the click works %)

It has to be fixed, as for me.

from react-grid-layout.

alexandrbig avatar alexandrbig commented on June 12, 2024

It's important not to render a placeholder on a click - otherwise you would see a transparent red widget flash when you're just trying to click a button. It appears we have indeed actually broken this in 1.4.3+.

I am swamped with other commitments right now, if you can identify the issue please open a PR. Please include a test in that PR so we don't break it again! This interaction is complex.

Thank you for your reply.
Currently I've downgraded to 1.4.2.

Once I have spare time I'll try to investigate it deeply.

from react-grid-layout.

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.