Comments (7)
Thanks @agentfitz, I'll get this fixed up shortly.
from fancyselect.
Confirmed on my Android phone too.
Chrome version 28
Android 4.2.2
from fancyselect.
Fixed it by adding
isAndroid = !!navigator.userAgent.match(/Android/i);
if(isAndroid) return;
on line 9.
[edit] fixed might be a big word. But it's working. you can style still the element with css so...
from fancyselect.
Thanks @mettin, but the goal here is to keep the styled trigger and still use the native select when it's focused. I'm actually working on this right now (It's caused by Android not allowing focus
to be manually triggered on form elements), and should have a fix soon.
from fancyselect.
Yeah got that working too by adding div.fancy-select div.trigger, .parent select{/*style*/}
. I Agree, not the best solution.
from fancyselect.
After messing around with it a bit, the experience is really pretty comparable to native selects on Android (at least in my opinion), so I'm leaning towards going native on iOS only. Thoughts?
from fancyselect.
After changing to isMobile = !!navigator.userAgent.match(/Mobile|webOS/i); if(isMobile) return
i can say i'm satisfied with how it works. you want the native thingy on all mobile devices so... just change the css?
from fancyselect.
Related Issues (20)
- Touch devices: show styled trigger but use browser's default UI to select an option HOT 7
- Zepto compatibility
- Question regarding click event & chaining.
- What is the best way to have 2 different select styles? HOT 2
- FancySelect not showing up on Windows Phone devices
- Minimal styles
- Links in dropdown options HOT 1
- Select not opened in iphone HOT 4
- Width Of Select Box and Dropdown Box
- Update Readme.md HOT 1
- OptGroups not supported HOT 4
- Validation On Select Box HOT 11
- A way to select a value using jquery HOT 2
- close dropdown problem HOT 1
- Add Bower and NPM Support HOT 3
- IE11 scroll Issue
- Tabbing + keydown in Firefox v50 opens native & styled dropdown's
- Filter or Hide options
- select item doesn't change in multiple select boxes
- Easily style select elements in all major browsers? How so?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fancyselect.