Which appears to be caused by () returning null. There are 33 other projects in the npm registry using lightgallery. Start using lightgallery in your project by running npm i lightgallery. Modular architecture with built in plugins. Codepen demo Main features Fully responsive. Latest version: 2.7.1, last published: 5 months ago. 33 Dependents 111 Versions lightGallery A customizable, modular, responsive, lightbox gallery plugin for jQuery. Use this online lightgallery playground to view and fork lightgallery example apps and templates on CodeSandbox. lightGallery is a feature-rich, modular JavaScript gallery plugin for building beautiful image and video galleries for the web and the mobile. The console logs the error: TypeError: Cannot read properties of null (reading 'focus') Find Lightgallery Examples and Templates. The gallery should just open - either when triggered by clicking an image, or calling openGallery(). Import lightGallery from "lightgallery" import lgVideo from "lightgallery/plugins/video" import "lightgallery/css/lightgallery-bundle.css" import Expected result Here is the Stimulus controller (if helpful): We have a license key and also use the video plugin. Steps to reproduceįor context, this is a Rails app using Stimulus. Edit: this error is present in at least 2.2.0 and 2.2.1. This error appeared in 2.2.1 and is resolved by downgrading back to 2.2.0. However, the issue re-appears for each new page. Oddly, refreshing the page then fixes the issue. TypeError: Cannot read properties of null (reading 'focus')Īt LightGallery.push./node_modules/lightgallery/.LightGallery.openGallery (vendors-node_modules_algolia_autocomplete-js_dist_esm_autocomplete_js-node_modules_algolia_au-7a256d.js:27553)Īt extended.openImages (application.js:2556)Īt (vendors-node_modules_algolia_autocomplete-js_dist_esm_autocomplete_js-node_modules_algolia_au-7a256d.js:12888)Īt (vendors-node_modules_algolia_autocomplete-js_dist_esm_autocomplete_js-node_modules_algolia_au-7a256d.js:12865)Īt (vendors-node_modules_algolia_autocomplete-js_dist_esm_autocomplete_js-node_modules_algolia_au-7a256d.js:13680) A few months back, I was looking for a bare-bones lightboxscript to zoom into various items in a gallery. If you are creating an open source application under a license compatible with the GNU GPL license v3, you may use this project under the terms of the GPLv3.Error invoking action "click->image-gallery#openImages" lightGallery supports features such as, Animated thumbnails, Pinch / double tap to zoom, HTML5 videos, YouTube, VImeo, videos, social media share, Rotate, fullScreen and many more. Purchase a lightGallery Commercial License at /posts/lightgallery-plugin Open source license With this option, your source code is kept proprietary. If you want to use lightGallery to develop commercial sites, themes, projects, and applications, the Commercial license is the appropriate license. You can Install lightgallery and its modules using the Bower package manager. Lightgallery supports all major browsers including IE 8 and above.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |