question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for focusNext() to Input class

See original GitHub issue

Feature Request

Ionic Info

Ionic:

   ionic (Ionic CLI)          : 4.1.1
   Ionic Framework            : @ionic/angular 4.0.0-beta.3
   @angular-devkit/core       : 0.7.5
   @angular-devkit/schematics : 0.7.5
   @angular/cli               : 6.1.5
   @ionic/ng-toolkit          : 1.0.7
   @ionic/schematics-angular  : 1.0.5

Cordova:

   cordova (Cordova CLI) : 7.1.0
   Cordova Platforms     : android 6.3.0
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.1.0, (and 4 other plugins)

System:

   Android SDK Tools : 26.1.1
   NodeJS            : v8.9.1
   npm               : 5.5.1

Describe the Feature Request In older version of Ionic there was a class TextInput with method focusNext(), which was very helpful in setting focus to next input element.

Using that, we were able to set focus to next input when the user press Enter key.

In Ionic 4, it seems that the class TextInput has been changed and replaced by Input class, which doesn’t have focusNext() method.

It would be great, if this could be added back to the Input class.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:9
  • Comments:5

github_iconTop GitHub Comments

3reactions
Jahrenskicommented, Dec 3, 2018

Also need the setBlur() !!!

0reactions
cyrilfrcommented, Sep 12, 2022

This feature would really improve the way you can provide a good flow to your users.

Read more comments on GitHub >

github_iconTop Results From Across the Web

focus - CSS: Cascading Style Sheets - MDN Web Docs - Mozilla
The :focus CSS pseudo-class represents an element (such as a form input) that has received focus. It is generally triggered when the user ......
Read more >
Jquery focus on next element with class - Stack Overflow
I am trying to create a function that when key press Enter occurs the next input with a class is selected.
Read more >
I want to set the focus to the next element, when pressing ...
first , focus is on the select element. at this time, press Enter key , i want to set the focus to the...
Read more >
onfocus Event - W3Schools
Execute a JavaScript when an input field gets focus: ... The onfocus event occurs when an element gets focus. ... It is fully...
Read more >
Cant Focus Input Field - Material Design for Bootstrap
In Bootstrap i am using this line to focus an element $('element-id').focus(); . But MDB i cant able for focus an input field....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found