Closed therealpecus closed 3 years ago
You are the best, thanks for the PR, I will update it to npm and notify you
Hi @therealpecus, I updated the component with your changes and in the version 2.5.2 you can use the prop enableScrollLock.
So thanks you again and I'm going to add you to the acknowledgements section.
Thank you @lucaspulliese ! I had missed your feedback, kudos again for a very well crafted component!
No problem, thank you very much for the PR!
Disabling scrolling on the underlying page makes sense and Vue Cool Lightbox takes care of fixing the body while preserving the page position. In some situations this might be undesirable (such as in case of conflicts on inline styles on the body element or when a component or animation framework overrides page positioning).
In these case, a new prop
enableScrollLock
(which defaults totrue
to guarantee backward compatibility) provides a way, when set tofalse
, to avoid Vue Cool Lightbox setting CSS styles on the body element that prevent page scroll.