-
Notifications
You must be signed in to change notification settings - Fork 30
Weird Animation and No Focus When Using Focus option On Input Field #18
Comments
Hmm, have you tried adding <preference name="KeyboardDisplayRequiresUserAction" value="false" /> to your config.xml? Had some weird animation issues as well but they seemed to be resolved when I added this. |
the focus works, my bad for not reading the readme carefully, but I am Also it doesn't appear to have any impact on a modal sliding in from the I will try and break it out into a smaller codePen to demonstrate the issue -- http://www.clearlyinnovative.com/build-it/Aaron K. Saunders This email message and any attachment(s) are for the sole use of the On Tue, Jul 7, 2015 at 2:31 PM, Mike Hartington [email protected]
|
Sounds good. I remember there being some issues with autofocusing inputs with Ionic, which could be resolved by adding a small timeout and using a directive directive. We could do the same to formly-focus.js. @kentcdodds maybe able to shed some light here if it's possible to override that. |
Take a look at this (new) example |
unless I am missing something here, the focus works fine on regular -- http://www.clearlyinnovative.com/build-it/Aaron K. Saunders This email message and any attachment(s) are for the sole use of the On Tue, Jul 7, 2015 at 6:54 PM, Kent C. Dodds [email protected]
|
Thats what I was wondering as well. Looks like I may have to add this to the templates. It defaults to 0, we may need to bump that up a bit for ionic. @aaronksaunders would you be willing to test this out and maybe make a PR? |
Sure I will give it a try... Just point me in the right direction. Haven't dug too deep into the ionic template code Aaron K. Saunders An Appcelerator Titanium Gold Partner This email message and any attachment(s) are for the sole use of the intended recipient(s) and may contain proprietary and/or confidential information which may be privileged or otherwise protected from disclosure. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient(s), please contact the sender by reply email and destroy the original message and any copies of the message as well as any attachment(s) to the original message.
|
Sure, you should just have to work with this https://github.com/formly-js/angular-formly-templates-ionic/blob/master/src/fields/ion-input.html And add a statement for focus-wait. <input ng-model="model[options.key]"
focus-wait="{{options.templateOptions.focusWait? options.templateOptions.focusWait: '500'}}"
/> With the way ionic handles inputs and setting focus, you should test placing Then you should be able to to |
Actually, interesting story. That Note, there's an example of how to dynamically add the needed attributes in the docs: http://docs.angular-formly.com/v6.16.0/docs/formly-focus |
Looking for options to get the keyboard to appear on screen when screen opens, could hack it if necessary
The text was updated successfully, but these errors were encountered: