Giter Site home page Giter Site logo

Comments (4)

torfsen avatar torfsen commented on June 21, 2024

Interesting, that didn't happen for me (or I didn't notice it). I would prefer to disable the autofocus instead, otherwise we get the same problem again once we have enough cities to require a search box.

from wo-ist-markt.github.io.

dirkschumacher avatar dirkschumacher commented on June 21, 2024

No wait. I checked it again. It does not happen on page load but when you click on the city option. There the auto focus happens.

from wo-ist-markt.github.io.

torfsen avatar torfsen commented on June 21, 2024

Ah, OK. Well that makes sense, I guess, because that's how dropdown controls with a search field work 😉 I think the problem here is that our dropdown control library (select2) uses the same UI approach on all platforms. I first used chosen which defaults to the built-in UI for mobile platforms and therefore would probably handle your problem better, but unfortunately chosen had other issues that I couldn't get around.

I see 3 approaches:

  1. Keep the current state, because that's just how these controls work
  2. Disable the select2 overlay control on mobile platforms, because the built-in UI is better
  3. Use a dropdown-control library that doesn't have this problem (i.e. which uses approach 2)

I prefer approach 2 but that would require us to think about when and where we use the built-in UI (i.e. which devices, resolutions, etc.).

from wo-ist-markt.github.io.

johnjohndoe avatar johnjohndoe commented on June 21, 2024

I am now closing this issue due to inactivity over the last years. If anyone is interested in the topic we can re-open it at any time. Thank you.

from wo-ist-markt.github.io.

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.