Comments (2)
Another issue I found is that when I try to click a button inside of the panel, nothing happens. It's supposed to bring up a popup on click. I removed Gridder functionality and confirmed that it works without it. I'm guessing there's a preventDefault() somewhere in the script that's preventing this? How can I go about stopping that behaviour?
from gridder.
The button issue was my fault- I was trying to assign the click event to the button, but the button did not exist yet (as the popup did not exist yet). The solution was assigning it to the gridder element, like so
$('.gridder').on("click", ".js-request-btn", function() { // Code here.... });
However, I still had the animation issues. For anyone else with animation issues, this solution sort of works....put this in your onContent method
onContent: function() {
//Gridder Content Loaded
$(document.body).trigger('post-load'); // Useful for WordPress Jetpack lazyload images
var gridder_show = $('.gridder-show');
$(gridder_show).removeClass("active");
$(gridder_show).addClass("active");
var panelTop = $(gridder_show).offset().top;
var mq = window.matchMedia("(max-width: 600px)");
var match = mq.matches ? panelTop - 50 : panelTop - 100;
$("html, body").animate({
scrollTop: match
}, 700, function() {
$(gridder_show).focus();
});
},
from gridder.
Related Issues (20)
- How to disable scrollOffset effect HOT 1
- Expander at wrong place HOT 2
- How to call a gridder close function on button click HOT 1
- Extend Request: Ability to target a specific element within the gridder-list HOT 4
- gridder by default first open preview HOT 2
- Remove superfluous console.log "No active gridder." HOT 1
- Not visible on mobile HOT 5
- Not working with jQuery v3.2.1 HOT 1
- Navs not working HOT 1
- Using gridder within a WP Query does not work HOT 1
- Gridder with Flickity slider: Slideshow doesn't work after gridder content expands HOT 1
- wordpress compatibility problem HOT 1
- Clicking disabled within the gridder-expanded-content div
- npm package fΓΌr gridder jquery plugin
- More Easing Options
- Open item from a url on another page HOT 2
- Flexbox breaking grid HOT 1
- Column breaks out HOT 3
- Multiple instances HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gridder.