Comments (7)
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.
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.
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.
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.
I'm pretty sure its intended in order to maintain interactivity.
from react-grid-layout.
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.
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)
- Using with Nextjs 14 HOT 3
- [rtl resize] In RTL resize, when I try to shrink it, it gets bigger instead
- Race condition on React 18 setState causes mouse to "skip" when dragging / resizing. HOT 7
- Positioning and Resizing does not work as intended in production mode HOT 2
- The performance of the grid layout is adversely affected when dealing with large SVG grid elements (size ≥ 1MB). HOT 5
- dragging working not correct HOT 10
- Setting item height based on rowHeight in OnResize is buggy HOT 1
- The x,y coordinate of the item is incorrect
- When columns are thin and column spacing is set, items move from their grid position when clicked HOT 3
- [feature request] Drop onto another widget
- Dynamic static changes on children do not change children rendering HOT 3
- Grid item shifts leftward unexpectedly when dragging leftward resize handle.
- Responsive Grid Layout not working.. HOT 2
- React-grid-layout, antd dynamic form list HOT 1
- Upgrading dependencies causes react-grid-layout Responsive to crash with babel-loader error HOT 3
- Have errors in utils.js && ReactGridLayout.js HOT 3
- This repo should have updates for React 18+ HOT 4
- I have maxRows, but still its allow me to add more rows
- React 19 - Each child in a list should have a unique "key" prop. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-grid-layout.