Comments (7)
I'm on it!
from select-or-die.
@phbou72 @vestman This is not because of selection from second dropdown. Just click anywhere else and the event will be triggered. A possible hack/workaround I am using is this : http://jsfiddle.net/oktg53kv/
from select-or-die.
Ok. Clicking elsewhere does trigger the event. But, that still point out a bug in my opinion. Why is the onChange event triggered multiple type? Why not only when we select a new option?
I should not need to use a closure to check if a new option has been selected.
from select-or-die.
I've fixed this issue guys:
Add this after line 384:
_private.blurSod($sod);
@phbou72 @vestman @swapnilmishra
// all : please ignore the above fix. It does fix the described behaviour, however it peaks my CPU usage completely and results in a hanging browser. Would you check this out @vestman ? Thanks 👍
As far as I can see, the element should be unfocussed after selecting a new one. At the moment, this doesn't happen and when you click outside of the dropdown the event gets fired again. Adding the line above fixed it - but results in a conflict with the rest of the plugin (seems to be some kind of endless loop).
Hope it helps, would be great to get it fixed 👍
from select-or-die.
Fixed, thanks for pointing this out, @phbou72! Since you're using the selectordie.min.js from vst.mn as an external resource you can check your original fiddle - http://jsfiddle.net/Ls3mcvLu/6/ - to check that it's working.
from select-or-die.
👍 thanks @vestman
from select-or-die.
Thanks a lot @vestman! It work perfectly!
from select-or-die.
Related Issues (20)
- Multiple Select HOT 1
- Problems when navigating back or forward in Chrome HOT 6
- The update method does not offer any update of the config HOT 3
- Responsive styling of sod using percentages
- Selectordie not displayed correctly HOT 1
- More Callback functions HOT 1
- wasted @import font call HOT 1
- Placeholder not updating with selected option in Windows 8 (IE/Chrome) HOT 5
- Sorry for the lack of updates
- Option list in overflow hidden container issue HOT 9
- Does not work if size/data-size="5" option is added. HOT 2
- Updates
- Adding a Size breaks the drop down? HOT 1
- npm please! HOT 1
- Value not retained when selecting via sod_label.
- Multiple select elements on a single page on IOS
- Documentation is down HOT 2
- About the homepage HOT 1
- Can the plugin be made to copy over any/all data attributes in the source select options?
- Please copy the instructions from your website to the github readme file
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 select-or-die.