lcdsantos / jQuery-Selectric

jQuery plugin for easy manipulation and customization of HTML selects
http://selectric.js.org/
MIT License
727 stars 157 forks source link

Open method not firing when nativeOnMobile is true #164

Closed 14nd90 closed 7 years ago

14nd90 commented 7 years ago

Related PR: https://github.com/lcdsantos/jQuery-Selectric/pull/128

Consider this code

`$("#sort-dropdown").selectric({ disableOnMobile: false, nativeOnMobile: true });

$("#sort-link").click(function(e) { e.preventDefault(); $("#sort-dropdown").selectric('open'); });`

My aim is to use a link to open the dropdown list. Works great on desktop but not on mobile devices. Is there any way to trigger the native mobile select functionality ?

14nd90 commented 7 years ago

Sorry, have only just seen this, which I think is a duplicate.