BENARD Patrick
BENARD Patrick
Something like [this fiddle](https://jsfiddle.net/pbenard/c1tts465/1/) using a clone ? ``` $('#my_checkbox').on('change', function(){ if ($(this).is(':checked')) { $('#my_iconpicker').iconpicker(); } else { var source = $('#my_iconpicker'); source.unbind().empty(); var clone = source.clone(false); source.remove(); $('label').before(clone); }...
Just have to set false as clone function argument. [The doc](https://api.jquery.com/clone/) [The working fiddle](https://jsfiddle.net/r87e5nh5/2/) The code with toggle true to false in clone function ``` jQuery(".aaaa").iconpicker(); jQuery(".a_clone").on("click",function(){ $(".aaaa").clone(false).insertAfter(".iconpicker_cloned"); jQuery(".aaaa").iconpicker(); });...
Yes it could be better, but the main bundle seems to not be maintained.... Here is a hack just for your case : [fiddle](https://jsfiddle.net/pbenard/r87e5nh5/5/) ``` $(".base_iconpicker").iconpicker(); $(".btn_clone").on("click",function(){ var div_cloned =...
I use this, to handle the drag only after a time lapse ```js const PRESS_TIME_UNTIL_DRAG_MS = 250: const IconDraggable = ({ children, onClick }) => { const [isDragging, setDragging] =...
In waiting for a more convenient solution, I did a workaround in using css and `selectableElement`. ```css g.react-flow__edge:not(.selected) circle { pointer-events:none; } ```