Comments (8)
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.
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.
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.
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.
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.
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.
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.
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)
- use autocomplete service instead of geocoder service HOT 4
- Installation not working HOT 8
- CSS problems HOT 1
- Ionic 2 Version
- Bower package is outdated HOT 6
- Using with multiple input boxes HOT 2
- 1 Chome-11 Kamifukubara, Yonago-shi, Tottori-ken 683-0004, Japan
- Get value when currentLocation="true"
- Get parts of a address
- Scrolling open ion-google-place HOT 1
- Set value HOT 1
- setting filters by business type
- Include component into ionic 2 typescript HOT 2
- Does it work with ionic 1.3.2 on Android? HOT 6
- Ng-model not working with maxlength defined
- Use ion-popover-view
- Help adding the dependency in the app HOT 1
- i dont see it working
- Is it possible to remove default input box?
- How do you restrict the API access?
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 ion-google-place.