# Autofocus text field problem

**URL:** <https://forum.ionicframework.com/t/autofocus-text-field-problem/26261>\
**Category:** ionic-v1\
**Created:** [June 12, 2015, 1:59pm UTC](https://forum.ionicframework.com/t/autofocus-text-field-problem/26261 "2015-06-12T13:59:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![claudio\_mulas](https://avatars.discourse-cdn.com/v4/letter/c/439d5e/32.png) [@claudio\_mulas](https://forum.ionicframework.com/u/claudio_mulas)\
**Post date:** [June 12, 2015, 1:59pm UTC](https://forum.ionicframework.com/t/autofocus-text-field-problem/26261/1 "2015-06-12T13:59:35Z")

</div>

I’m getting another problem. Each time i tap on a menu button (or even in the header) the keyboard is opened automatically.

I think that is an issue caused by the focus on the last text input.

[You can see an example here.][1]

I’m using Ionic 1.0.  
[1]: [https://www.youtube.com/watch?v=xWj7pDanzGA](https://www.youtube.com/watch?v=xWj7pDanzGA)

---

<div class="post-metadata">

**Author:** ![Witteman](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/witteman/32/88754_2.png) [@Witteman](https://forum.ionicframework.com/u/Witteman)\
**Post date:** [July 30, 2015, 8:27am UTC](https://forum.ionicframework.com/t/autofocus-text-field-problem/26261/2 "2015-07-30T08:27:14Z")

</div>

Same here. Removing autofocus from any inputs (regardless of which view / state / page) eliminated the problem.

You could if you really need autofocus, focus through JavaScript in an `ionicViewSwitcher.on('enter'){}` listener.
