Code Monkey home page Code Monkey logo

Comments (5)

adamcoulombe avatar adamcoulombe commented on July 17, 2024

I have looked in to this a little. Firefox has some very different behaviour when it comes to blurring an open select box. Applying fixes to support this could get very ugly and may actually be a job maybe for a serperate plugin. At this point, I am actually considering removing support for the open state since it just doesnt seem to be feasible in cross-browser implementations without bloating the plugin a great deal

from jquery.customselect.

iSimonWeb avatar iSimonWeb commented on July 17, 2024

I think that you can easily check what kind of element the user clicked on 'mouseup':
if it's another .customSelect the plugin blurs the open select and triggers a click event on the closed one.

Am I right dude?

from jquery.customselect.

adamcoulombe avatar adamcoulombe commented on July 17, 2024

yeah but Firefox doesnt fire a mouseup if you click away onto another select :S

http://jsfiddle.net/hysHB/99/

from jquery.customselect.

adamcoulombe avatar adamcoulombe commented on July 17, 2024

@iSimonWeb Please take a look at 0.4.1 . We were previously blocking mouseup event propogation which was preventing our document mouseup handler from executing (which prevented the manual .blur from happening). So in firefox we first check to see if there are other customSelects open, and if so, we allow the mouseUp to propogate as usual, and just apply a focus. Yikes! I get the feeling though that we havent seen the last of this issue. But this hopefully should solve your problem!

from jquery.customselect.

iSimonWeb avatar iSimonWeb commented on July 17, 2024

Yes it does! Thank you man. See you next issue :P

from jquery.customselect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.