Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Closing when clicking on scroll bar #65

Open
fernandodamaso opened this issue Nov 14, 2014 · 9 comments
Open

Closing when clicking on scroll bar #65

fernandodamaso opened this issue Nov 14, 2014 · 9 comments

Comments

@fernandodamaso
Copy link

When the select has a max-height property and it creates a scrollbar, when clicking on the scrollbar to see the bottom items, the list disappear. Can the list only close when selecting one of the items only?

@devonbeard
Copy link

I'm also having the same issue. For example in ie11 (or any IE), when you click a dropdown and then use the arrows to move the list up or down it closes within 1 second or so. Does that for both the arrows and the scroll bar.
screen shot 2014-12-24 at 11 27 58 am

@notnotgabriel
Copy link

Same error here.

@victormiguez
Copy link

+1 ):

@dan24678
Copy link

Seeing this in IE (9+, didn't test 8 or lower), Chrome & Safari. Only FF seems fine.

@devonbeard
Copy link

I was trying to debug this and the issue is with the close.fs trigger function. It may need to be broken out into two functions one for when you click an option list item it closes the dropdown and then one for clicking on the outside of the element to close.

@oddnavy
Copy link

oddnavy commented Feb 10, 2015

Having this issue in FF and IE too.

@devBwebi
Copy link

Same here! I hope it'll be fixed.
Couldn't achieve a solution.

@pepa-linha
Copy link

Yep, there is a problem with closing a options list when original select (tag ) lost focus, then options are hided. Fancy select is bad designed with that because tag with class "trigger" should be focusable but it is not, then tag with class with "options" should be child "trigger" element... Fast solution is remove handling "blur.fs", in code sel.on('blur.fs', function() { })

@devBwebi
Copy link

Thanks pepa-linha!
Have you tried it? is it working? I will give it a shot right away.

timplummer added a commit to timplummer/FancySelect that referenced this issue May 6, 2015
A more elegant approach to fixing `Closing when clicking on scroll bar paulstraw#65`.
  - added condition to if statement in `blur.fs` to detect if options is hovered.
  - if not hovered, keep <select> in focus.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants