XiongAmao / vue-easy-lightbox

A tiny lightbox component for Vue.js 3.0 :tada::tada: https://xiongamao.github.io/vue-easy-lightbox/
MIT License
420 stars 69 forks source link

unexpected body overflow unlock #147

Closed qoo1476 closed 8 months ago

qoo1476 commented 8 months ago

hi may i ask a one request?

i created my own modal Component with body scroll lock (body="overflow: hidden" when it opens)

the problem is vue-easy-lightbox is in my Custom Modal Component and whenever i close it, my body overflow hidden style is gone.

and i found out it's because of these lines

image

is it possible enableScrolling() only triggers when scroll-disabled is true?

something like this,

if(props.scrollDisabled) { enableScrolling() }

thanks in advance.

XiongAmao commented 8 months ago

Hi, it was fixed in v1.19.0.