Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
// Use empty image as a drag preview so browsers don't draw it
// and we can draw whatever we want on the custom drag layer instead.
this.props.connectDragPreview(getEmptyImage(), {
// IE fallback: specify that we'd rather screenshot the node
// when it already knows it's being dragged so we can hide it with CSS.
// Removginv the fallabck makes it handle variable height elements
// captureDraggingState: true,
});
}
componentDidMount() {
// Use empty image as a drag preview so browsers don't draw it
// and we can draw whatever we want on the custom drag layer instead.
this.props.connectDragPreview(getEmptyImage(), {
// IE fallback: specify that we'd rather screenshot the node
// when it already knows it's being dragged so we can hide it with CSS.
captureDraggingState: true,
});
this.handleRowSelection = this.handleRowSelection.bind(this);
}
componentDidMount() {
// use empty image as a drag preview so browsers don't draw it
// and we can draw whatever we want on the custom drag layer instead.
this.props.connectDragPreview(getEmptyImage(), {
// IE fallback: specify that we'd rather screenshot the node
// when it already knows it's being dragged so we can hide it with CSS.
captureDraggingState: true
});
}
componentDidMount() {
// Replace the native drag preview with an empty image.
this.props.connectDragPreview(getEmptyImage(), {
captureDraggingState: true,
});
}
componentDidMount() {
if (this.props.selected) {
if (
this.el &&
typeof this.el.focus === 'function' &&
!this.props.isScrolling()
) {
this.el.focus();
}
}
const { connectDragPreview } = this.props;
if (connectDragPreview) {
// Use empty image as a drag preview so browsers don't draw it
// and we can draw whatever we want on the custom drag layer instead.
connectDragPreview(getEmptyImage(), {
// IE fallback: specify that we'd rather screenshot the node
// when it already knows it's being dragged so we can hide it with CSS.
captureDraggingState: true,
});
}
this.checkScreenshot();
}
componentDidMount() {
this.props.connectDragPreview(getEmptyImage(), {
captureDraggingState: true
});
}
useEffect(() => {
preview(getEmptyImage(), { captureDraggingState: true });
}, [preview]);
useEffect(() => {
preview(getEmptyImage(), { captureDraggingState: false });
}, [preview]);
componentDidMount() {
this.props.connectDragPreview(getEmptyImage(), { captureDraggingState: true })
}
useEffect(() => {
connectDragPreview(getEmptyImage())
})
return (