cropit icon indicating copy to clipboard operation
cropit copied to clipboard

JQuery 3.0.0 Compatibility

Open josemaldo opened this issue 7 years ago • 7 comments

It seems to be a problem with the pluggin and the latest version of JQuery. No prolems with version 2 and below.

Hope it helps :)

cropit-jquery-3 0 0

josemaldo avatar Jul 16 '16 16:07 josemaldo

I am also seeing this issue. A very hacky hack around it is to declare props as an array right above the line where the error is happening.

Right above

_jquery2['default'].event.props.push('dataTransfer');

put this:

    _jquery2['default'].event.props = [];

denvaar avatar Jul 26 '16 17:07 denvaar

+1

exos avatar Oct 05 '16 07:10 exos

please fix compatibility problem thanks :-)

nobels avatar Nov 04 '16 14:11 nobels

_jquery2['default'].event.props = [];

This is not a good suggestion and requires maintaining your own version of this plugin.

Instead, use jQuery Migrate until the code in this lib is fixed.

benallfree avatar Nov 21 '16 17:11 benallfree

@benallfree the real issue is that this should be done as a fix and pull request.

@denvaar thanks for the solution.

@scottcheng can we see this included in future versions? Thank you.

Hitting the same issue. Is there an update to this?

mlunoe avatar Sep 25 '17 21:09 mlunoe

#241 seems to work for me.

FahriDevZ avatar Sep 29 '17 09:09 FahriDevZ