avatar-uploader icon indicating copy to clipboard operation
avatar-uploader copied to clipboard

Demo doesn't work in IE11

Open miksh7 opened this issue 11 years ago • 5 comments

SCRIPT438: Object doesn't support property or method 'remove' File: avatar.js, Line: 76, Column: 3

miksh7 avatar Oct 30 '14 17:10 miksh7

I don't see any mention of .remove() in the code, but I'll look into it when I'm next in a VM, thanks.

danharper avatar Oct 30 '14 17:10 danharper

The demo seems to use an older version, without this edit: https://github.com/danharper/avatar-uploader/commit/2c8af2759d3803b3d1711ed0a4f85579a0b4854a

Line 76 of avatar.js in the demo is:

imgEl.remove();

joostvanderborg avatar Nov 28 '14 11:11 joostvanderborg

I couldn't get it working in IE 11 but this change worked:

.avatar-upload__wrapper input {
	position: absolute;
	top: 0;
	left: 0;
	/* bottom: 0;
	right: 0; */
	width: 100%;
	height: 100%;
	opacity: 0;
}

huulbaek avatar Oct 03 '17 07:10 huulbaek