Giter Club home page Giter Club logo

Comments (8)

etodanik avatar etodanik commented on June 29, 2024

Why would you want to do such a thing? :)

If you look carefully, the onClick event contains logic that delegates the click event on the original input field to the search input, and focuses it.

from ion-google-place.

yedeba avatar yedeba commented on June 29, 2024

It is essential in my project,
ion-google-place shown with other fields,
runs on scrolling when not needed.
I do not understand because the click does not execute the focus.
Is there any way you know?
Thanks :)

El 06/08/2014, a las 21:06, Danny Povolotski [email protected] escribió:

Why would you want to do such a thing? :)

If you look carefully, the onClick event contains logic that delegates the click event on the original input field to the search input, and focuses it.


Reply to this email directly or view it on GitHub.

from ion-google-place.

etodanik avatar etodanik commented on June 29, 2024

Hmm, you mean while "dragging" the screen, if you touch it by accident, the tap event triggers?

Basically, that sounds to me like ionic itself getting a bit confused about its' events. The click event binding is there because iOS has very strict rules about who can trigger a focus event. Any focus event needs to start with a real click / tap event by the user. Therefore we capture the tap on the input field and delegate it all the way to focusing the search field.

from ion-google-place.

yedeba avatar yedeba commented on June 29, 2024

I found this:
http://forum.ionicframework.com/t/focus-method-doesnt-work-on-input-textarea-etc/5606/12

in config.xml put:

keyboard show one second and suddenly disappears.
Could it be a solution?
Thanks

from ion-google-place.

yedeba avatar yedeba commented on June 29, 2024

I found this:
http://forum.ionicframework.com/t/focus-method-doesnt-work-on-input-textarea-etc/5606/12

in config.xml put:

keyboard show one second and suddenly disappears.
Could it be a solution by adding more?
Thanks

El 06/08/2014, a las 21:21, Danny Povolotski [email protected] escribió:

Hmm, you mean while "dragging" the screen, if you touch it by accident, the tap event triggers?

Basically, that sounds to me like ionic itself getting a bit confused about its' events. The click event binding is there because iOS has very strict rules about who can trigger a focus event. Any focus event needs to start with a real click / tap event by the user. Therefore we capture the tap on the input field and delegate it all the way to focusing the search field.


Reply to this email directly or view it on GitHub.

from ion-google-place.

etodanik avatar etodanik commented on June 29, 2024

This doesn't look quite like the same issue. iOS has a pretty rigid limitation on the whole focus issue in the Web View.

You could look around to see if there's anyway to prevent the drag event to be mistaken for a tap.

from ion-google-place.

etodanik avatar etodanik commented on June 29, 2024

Did you ever find a solution for your issue? I'm still not quite sure what you're trying to do.

from ion-google-place.

etodanik avatar etodanik commented on June 29, 2024

I'm closing this issue as I didn't quite understand what you're trying to do. Please feel free to respond here and I will reopen this issue.

from ion-google-place.

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.