Git Product home page Git Product logo

Comments (5)

tjschuck avatar tjschuck commented on June 9, 2024

@qianshancun Are you talking about #top-chrome-touch-ui in chrome://flags/ ? If so, I cannot reproduce.

If you're talking about changing the "Device" in the web inspector, this behavior is expected if you're changing to a device with a mobile Android user-agent. See the third question in the FAQ. Chosen is disabled for any user-agent that includes both Android and Mobile.

from chosen.

qianshancun avatar qianshancun commented on June 9, 2024

@qianshancun Are you talking about #top-chrome-touch-ui in chrome://flags/ ? If so, I cannot reproduce.

If you're talking about changing the "Device" in the web inspector, this behavior is expected if you're changing to a device with a mobile Android user-agent. See the third question in the FAQ. Chosen is disabled for any user-agent that includes both Android and Mobile.

@tjschuck You can do this to reproduce it:

image

from chosen.

tjschuck avatar tjschuck commented on June 9, 2024

@qianshancun Okay, that's the second thing I mentioned. I can reproduce when I do what's shown in your screenshot, but using those settings, my request has the User Agent Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Mobile Safari/537.36 — that User Agent matches on the Android + Mobile check, so Chosen is intentionally disabled.

See #1388 for more info about why Chosen is disabled in touch environments.

from chosen.

qianshancun avatar qianshancun commented on June 9, 2024

Hi, thanks very much for the information. Is there any way I could keep it enabled? Like passing in an option like this:

$el.chosen({bypass_mobile_disable:true});

from chosen.

tjschuck avatar tjschuck commented on June 9, 2024

There's no existing option like that, no. Your best bet would just be to locally modify the browser_is_supported check to do what you'd like.

from chosen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.