Comments (2)
With 1.0, it might be a better idea to expose empty image from HTML5 backend.
And we need to look into possible hacks for IE.
from react-dnd.
Here's what we're doing in 1.0:
- Expose
getEmptyImage
helper fromHTML5
backend; - Expose and explain a workaround for making custom drag layers work in IE11.
Here's the relevant commit: de264ff.
I added captureDraggingState
to drag preview options. By default it's false
and that's what you usually want, but you can pass true
and then the browser will screenshot the drag source with isDragging
already equal to true. This is our only chance to hide the drag preview on IE by hiding the node itself with CSS.
If you don't care about IE support or custom drag layers, nevermind what I just said ;-)
This is out in 1.0.0-alpha.1
so I'm closing out this issue. The final 1.0 release is coming soon.
from react-dnd.
Related Issues (20)
- react-dnd does not work on chrome android even with touch backend HOT 1
- Multiple select, then drag and drop HOT 2
- canDrop invoked permanently?
- Drag doesn't work after focusing password input
- Not working in parent with modal styling { top: 50%, left: 50%, transform: translate(-50%, -50%) } HOT 2
- Examples using React Class Components
- Preview is not working for the first drag HOT 2
- please keyboard functionality
- Preview Image only works once, on the first drag. HOT 3
- Uncaught Invariant Violation: Expected an existing source.
- Library breaks textareas, inputs etc. HOT 1
- table 拖拽时 使用最新版本的React-dnd Api时 出现node.addEventListener is not a function
- 拖动时useDrag无法访问组件内的变量 HOT 1
- @react-dnd/asap trigger swc error `env` and `jsc.target` cannot be used together
- Custom Drag Layer elements don't update until AFTER I drag it. HOT 1
- Redux v5
- Where is dropEffect coming from?
- Hello! I am kupraa from Indonesia, I am very excited to join the project and the communitystar_struck. Wish the project success and strong developmentheart
- [Question] Working with DnD and PrimeReact's DataTable HOT 1
- Will there be a new version released ? and when will the next version be released? 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-dnd.