Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close on click outside box #213

Closed
softwaretech opened this issue Jun 24, 2015 · 10 comments
Closed

Close on click outside box #213

softwaretech opened this issue Jun 24, 2015 · 10 comments

Comments

@softwaretech
Copy link

I would love to have some type of options that allows me to close the dropdown when clicking outside. In other words, if the dropdown list is showing and I click somewhere else besides a radio button or checkbox, then allow the dropdown to close.

@vlad00777
Copy link

I have this problem too.

cptwunderlich added a commit to cptwunderlich/multiple-select that referenced this issue Jul 14, 2015
@wenzhixin
Copy link
Owner

Fixed in the latest version.

@PlippiePlop
Copy link

Closing when clicking outside the box works. However if you tab or click directly to another input, select or form button it does not close. Please fix.

@wenzhixin
Copy link
Owner

Can you provide a jsfiddle base on the example: #255? @PlippiePlop

@PlippiePlop
Copy link

Ok seems the clicking on other form elements works but tabbing is not.
https://jsfiddle.net/zthab5mn/

@wenzhixin
Copy link
Owner

I think this is not a bug because tabbing is an iframe.
1

@PlippiePlop
Copy link

If you have tab indexes on input fields (user friendlybess, disabbled people etc) you can tab from input to input. Normal selects will close and the focus is on the next field. You can tab through the options en then it will go to next field but not close multiselect.

@wenzhixin
Copy link
Owner

Do you mean use the tab key to the next input when open this dropdown? in this case, you need to use esc to close the dropdown first.

@PlippiePlop
Copy link

Normal behavior is tab to select: Use arrow to select options or enter to select item or tab to jump out of select: Try it here:
https://formidablepro.com/demos/job-listings/

@wenzhixin
Copy link
Owner

Maybe we can add enter to close dropdown(the same with esc), you can open a new feature issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants