Questions tagged [autofocus]
456 questions
5
votes
1 answer
How to prevent Google One Tap from stealing the focus from an input?
If you use Google One Tap on a page which has an input or textarea with autofocus, or where you use focus() during the page load, Google One Tap removes the focus from the input field when it displays its login window.
This looks like a Google One…

Óscar
- 650
- 1
- 4
- 16
5
votes
2 answers
Android Camera autofocus when user holds camera still
I'm sure most of you have used an android phone before and taken a picture. Whenever the user changes the mobile phone's position and holds it steady, the camera focusses automatically. I'm having a hard time replicating this in my app. The…

justin.saliba
- 724
- 1
- 9
- 17
5
votes
1 answer
PrimeNG Multiselect autofocus
Using PrimgNG v7.1.3 in Angular v7 project.
Implemented Multiselect (https://www.primefaces.org/primeng-7.1.3/#/multiselect), in a simple component.
Need to set focus on it when the page loads.
Below solution works for Dropdown but not for…

Kunal Dethe
- 1,254
- 1
- 18
- 38
5
votes
1 answer
How to make autofocus on input field when using react-final-form?
I created a form using react-final-form. autofocus is not working. The only solution I know is to use ref feature of React. Can I autofocus the input using react-final-form library?
import React from "react";
import { render } from…

Leon Gilyadov
- 670
- 6
- 13
5
votes
1 answer
How can I get autofocus to work in a second AVCaptureSession without recreating the sessions?
Autofocus is not working on the first AVCaptureSession when I create a second AVCaptureSession. The second session to be created is the one where autofocus works and the first created one does not autofocus.
I would expect that either session would…

Shane
- 1,207
- 13
- 16
5
votes
2 answers
Autofocus Input Element on Modal Open Bootstrap 4
I am trying to autofocus input element on bootstrap 4 modal open . I have tried below code from http://getbootstrap.com/docs/4.0/components/modal/ but this is not working.
Can someone help me to give working demo
$('#myModal').on('shown.bs.modal',…

Saurabh Mistry
- 12,833
- 5
- 50
- 71
5
votes
1 answer
custom v-focus not work when there are many v-if in parent node
I define the custom directive "focus" in my component: