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

mobile picker dismisses native picker instantly #55

Closed
ansonl opened this issue May 6, 2018 · 7 comments
Closed

mobile picker dismisses native picker instantly #55

ansonl opened this issue May 6, 2018 · 7 comments
Labels

Comments

@ansonl
Copy link

ansonl commented May 6, 2018

When setting .selectpicker('mobile'), on iOS 11.3 Safari, the native picker appears for a split second and is then hidden. There is no way to select any options or use the picker on mobile.

Example html and js code:

<select class="selectpicker" id="location-dropdown-btn" data-width="100%" data-style="btn-secondary" data-live-search="true" title="Select a Space-A location" data-toggle="tooltip">
	<option value="">Latest Flights</option>
</select>

<script>
$('#location-dropdown-btn').selectpicker('mobile')
</script>

Additionally, is there a way to disable the mobile style as well or have this feature added in?

I would like to set the mobile style as the safe default and change it to normal style if I detect a capable browser. Thanks.

@ansonl ansonl changed the title Ability to disable mobile picker style? mobile picker dismisses native picker instantly May 7, 2018
@sinneren
Copy link

sinneren commented May 7, 2018

Confirm issue, bug from 12.4 original plugin, actual for 11+ iOS and mobile touch emulation on Chrome Dev Tools. Without "mobile" option. Clean "open" class name when touch. But in clean demo work fine.
And work when long tap. Here the demo: https://jsfiddle.net/sinneren/9tae6atb/1/

@caseyjhol
Copy link
Member

@ansonl Does the problem persist if you set data-mobile="true" on the select itself?

@ansonl
Copy link
Author

ansonl commented May 7, 2018

@caseyjhol Yes, the problem still persists.

@caseyjhol
Copy link
Member

What version of Bootstrap and Bootstrap-select are you using?

@ansonl
Copy link
Author

ansonl commented May 7, 2018

Bootstrap v4.1.0
Bootstrap-select v1.13.1

@caseyjhol
Copy link
Member

@ghost
Copy link

ghost commented Aug 21, 2018

This issue was moved by caseyjhol to snapappointments/bootstrap-select#2043.

@ghost ghost closed this as completed Aug 21, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants