Questions tagged [autofocus]

456 questions
0
votes
1 answer

How to make tabIndex(input field) to begin at the top on page load - Jquery

Alright, I really can't figure this out. When one of my pages is loaded, the search field is automatically focused. This is breaking the tab order of the page. There are skip links and other links that are in correct tab order before the search…
Brandon
  • 21
  • 1
0
votes
2 answers

Progressively focus TextInput react native

I am currently creating a 4 digit otp (one time password) view for a react native app and i need the TextInput to progressively focus when i type a number on the previous input. I have been able to make the style change (without focus) but the…
codebarz
  • 327
  • 1
  • 5
  • 28
0
votes
1 answer

Input with autofocus property on Android browsers

When using the user can directly start typing after loading the page on a computer browser, without any other click. On Chrome Android, the input receives indeed the focus on load, but the keyboard is not opened, then…
Basj
  • 41,386
  • 99
  • 383
  • 673
0
votes
1 answer

VUEJS Set autofocus to ALL user inputs when component is created

I need to focus all the form user inputs onCreate(), so to make clear to the user that he can edit the fields if he needs to. The closer thing I found is something like: const input = this.$refs.email methods: { focusInput()…
the_flucs
  • 217
  • 1
  • 6
  • 21
0
votes
1 answer

How to redirect when the focus in input is false in Vuejs

i have a some view in vue, when open a search view it's automatic focus on input, then when it not focusing again the view must redirect back I have searched for this problem or solution and do my best but i'ts not work i use Vue JS 2 here my code…
0
votes
1 answer

Autofocus not working in modal form in Firefox

I have a search modal that pops up once you click an icon, I currently have autofocus="autofocus" on the input and it's not working in FF (Firefox). It seems to be working properly in Chrome. I've been trying to implement various JS to workaround…
Mhutch
  • 11
  • 4
0
votes
1 answer

Conver myRef to hooks version

I found this answer: ReactJS and autofocus but I don't know how to convert this: constructor(props) { super(props); this.myRef = React.createRef(); } componentDidMount(){ this.myRef.current.focus(); }
user11875917
0
votes
1 answer

Android Camera2 API How to get initial focus point distance with inbuilt AUTOFOCUS routine of camera?

So basically I want to get the focus distance of lens when the focus mode is AUTO. Currently I am working like this: Assuming CONTROL_AF_MODE is set to CONTROL_AF_MODE_AUTO by default. Trying to get CaptureRequest.LENS_FOCUS_DISTANCE which returns…
0
votes
1 answer

focus on search when page loads

I am trying to set the search on my website as the default focus point on page load. The search I am using is "search & filter" I have tried using autofocus and onfocus but cannot get the cursor to show in the search box. My search is in a widget…
0
votes
1 answer

Autofocus when clicking button to new page (seperate html)

I was able to implement auto-focus when you click a button taking you to the modal. Due to the following code: AngularJS: app.directive('autoFocus', function($timeout) { return { restrict: 'AC', link: function(_scope, _element)…
0
votes
1 answer

Camera Autofous does not work from a child activity, while it does from the launched activity

The title is a little vague, but the problem is a little tricky to explain, so here goes... (In this context, as I do not fully have the vernacular down, I use the term "Child Activity" to mean an activity that was launched via an intent from a…
SpacemanScott
  • 953
  • 9
  • 21
0
votes
1 answer

HTML: How to refresh page/document while clicking tabs in each time in html?

I prepared a html page with tabs. Each tab has input field. Below is the html code.