hernansartorio / jquery-nice-select

A lightweight jQuery plugin that replaces native select elements with customizable dropdowns.
http://jqueryniceselect.hernansartorio.com
961 stars 285 forks source link

Can not select a value when the select is inside a label #97

Closed evantill closed 4 years ago

evantill commented 4 years ago

When the select is in a label, we can not select an option.

Reprocase in this fiddle : https://jsfiddle.net/evantill/huqn39bk/4/

Description:

When I click on the select, a first event is handled by the open/close event handler

But a second event (with the native select has the target) is handled by the outside click event handler and the enhanced select is closed again.

evantill commented 4 years ago

I can make a pull request if you wish.

evantill commented 4 years ago

duplicate of https://github.com/hernansartorio/jquery-nice-select/issues/46