jQuery.Autosize.Input icon indicating copy to clipboard operation
jQuery.Autosize.Input copied to clipboard

Dom pollution

Open agladysh opened this issue 9 years ago • 2 comments

I use Autosize plugin to control size of an in-place input control. I create <input> dynamically each time user clicks on editable data.

Autosize dutifully creates a mirror <span> each time — and does not destroy it when an input is destroyed.

Here is a fiddle to reproduce the problem: http://jsfiddle.net/c1fxnezx/

I can contribute a fix if you'll tell me which way you want me to fix it.

agladysh avatar Mar 24 '15 12:03 agladysh

A fix would be great. I have no preference to how you fix it - obviously this._mirror needs to be cleared.

MartinF avatar Mar 26 '15 05:03 MartinF

Please see #29 by @VitaliyZheleznov.

agladysh avatar Mar 30 '15 10:03 agladysh