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.

Hi there, may be an issue on input with autofocus. The autofocus attribute or:

$( '#inputField' ).focus();

seems works, as you can see in below image image

but when I start typing I see that image

any idea?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Dogfalocommented, Jul 30, 2015

Autofocus does work,

see https://jsfiddle.net/6stuh1nh/4/

0reactions
altus34commented, May 29, 2016

In Firefox 46.0.1 the JSFiddle does not show Autofocus working

Read more comments on GitHub >

github_iconTop Results From Across the Web

autofocus - HTML: HyperText Markup Language | MDN
The autofocus global attribute is a Boolean attribute indicating that an element should be focused on page load, or when the <dialog> that...
Read more >
HTML input autofocus Attribute - W3Schools
The autofocus attribute is a boolean attribute. When present, it specifies that an <input> element should automatically get focus when the page loads....
Read more >
<input autofocus> » - HTML
What does <input autofocus> do? Specifies that the input field should be in focus immediately upon page load. Code Example. <form> <label for=" ......
Read more >
Set Input Focus with HTML5 autofocus | SamanthaMing.com
Use the autofocus attribute on form elements to automatically focus the input field when the page loads This is super handy if your...
Read more >
HTML5 Forms: Autofocus Type Attribute - Wufoo
The Low Down. The first input or textarea in source order that has the autofocus attribute will be focused on page load. In...
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