To reproduce: wrap the selectbox to be styled with a <label> tag.
Why: because clicking nice select bubbles to the label tag, which in turn triggers click with event.target set to the native select element, so the plugin treats it like "clicking outside".