Sidecart Overlay Created Many Times

I noticed that if you call "FC.sidecart.show();" many times it creates the dark background overlay each time. I found this on a product page toggle button for the sidecart and it just gets wacky if you use it too much.

If you want to reproduce this, go to "http://www.foxycart.com/features/examples" on Google Chrome or Firefox and execute "FC.sidecart.show();" on the JavaScript console repeatedly. You'll see the overlay get darker, and then at some point the offset from the right side doubles on all but one overlay layers.

Comments
  • fc_adamfc_adam FoxyCart Team
    @Raul,

    Interesting find - thanks for bringing that to our attention. We'll ticket that up and stop the overlay from duplicating like that as we're able.
  • fc_adamfc_adam FoxyCart Team
    @Raul,

    Quick update, we've recently rolled out a change that prevents the duplication you were seeing. Thanks for bringing this to our attention.
Sign In or Register to comment.