switchery icon indicating copy to clipboard operation
switchery copied to clipboard

Switchery Button gets inserted twice

Open opalsignum opened this issue 9 years ago • 2 comments

Hi, thanks for this awesome plugin.

Unfortunately i have the problem, that once i click on the Switchery toggle it gets inserted a second time to the right. So after the first use, i have two toggles. Everything else works fine.

When i insert all the code at the end of the html doc, the duplicated is removed. But once i click the switchery button it removes itself and there is only the original checkbox left.

Any help would be much appreciated.

opalsignum avatar Dec 06 '16 08:12 opalsignum

This sounds like a problem with your code.

Still, if you provide a simplified example of it, I can take a look.

abpetkov avatar Dec 29 '16 07:12 abpetkov

Sounds like recreated a new Switchery() instance whenever you toggle it. Try to remove the existing one with '.switchery' before recreate a new one

blinkerzz avatar Aug 13 '18 20:08 blinkerzz