jackmoore / colorbox

A light-weight, customizable lightbox plugin for jQuery
http://www.jacklmoore.com/colorbox/
MIT License
4.75k stars 1.14k forks source link

Clicking on an Input closes colorbox (mobile) #858

Open lanceolenik opened 6 years ago

lanceolenik commented 6 years ago

I'm having an issue where, on iOS (tested with iPhone 6) and on Android (tested with Galaxy S8+), I have an inline HTML form opening in a colorbox. When I tap on any of the inputs to start filling out the form, the colorbox closes. I thought my form may be too complex, but when I just had a basic form tag and a small test input, the same thing happened.

Any thoughts on why this is happening?

xtsimpouris commented 6 years ago

I have a similar issue (maybe). On a touch screen, I click a button which normally opens a colorbox popup. However, overlay gets clicked and popup closes ..during opening! I was thinking to set overlayClose to false, and set it to true 'onComplete', but it seems that settings cannot change after colorbox has initialized.