Comments (7)
I have the very same issue, is there any update regarding this?
I have tried with <a>
, <span>
, <button>
, everything. When you click on something (within the sliding panel) the panel closes itself. I don't understand what's the point of specifying a class or id on exit_selector
if any link will close the panel.
Thanks in advance for any news regarding this.
from sliiide.
+1
One of these maybe
$toggle.click(handleToggle);
$sliiider.find('a').on('click', function() {deactivate();});
$exit.on('click', function() {deactivate();});
from sliiide.
$("a:not(.sliiider-toggle, .slider-exit)").off('click');
Thought of a solution that doesn't require editing the library. I placed it after the slider init code.
from sliiide.
No idea how to GitHub, but I forked this repo and fixed it myself. :-)
from sliiide.
It should just be the line mentioned by @justrealmilk $sliiider.find('a').on('click', function() {deactivate();});
I dunno why when you use span or button tags it still closes, can you send me an example @jotapee ?
It's a good point though I should make it an option instead.
from sliiide.
HI @ahmedrad I can create a fiddle for you, np, but its super easy to recreate. Simply include any link within the sliiide panel and it will close when you click on it. Also happens with span and button.
Thanks @justrealmilk for you help, I will try your script to see how it goes.
Best!
from sliiide.
the latest release now has an auto_close option @jotapee @DeNelo @justrealmilk .. sorry for the delay. Closing this issue
from sliiide.
Related Issues (20)
- Menu scroll HOT 3
- package.json
- Caching HOT 2
- [Idea] Attach toggle icon to sidebar HOT 1
- Create events (OnSlide, OnSlideFinished) HOT 2
- License info HOT 2
- Close the menu HOT 1
- Double Click to initiate slider HOT 1
- Scroll inside menu
- close navigation
- Slide behind window HOT 1
- preventDefault passive
- shadow should also be able to handle toggle HOT 2
- no_scroll: true not working on mobile HOT 8
- Toggle image by click or swipe HOT 8
- Windows Phone 8 / IE10 HOT 2
- overflow: scroll; not effecting the menu HOT 1
- effect where the menu appears on the website ? HOT 1
- Html Overflow-X: Hidden Issue HOT 5
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 sliiide.