Questions tagged [onfocus]
onfocus is an event in HTML and JavaScript that triggers when the referenced object gains focus. This tag should be used only in conjunction with the primary language tag, and only for questions where the onfocus event is central to the issue(s) being addressed.
onfocus
500
questions
1
vote
0
answers
46
views
Asynchronous nature of HTMLelement.focus() method
There is a HTML element whose position changes when someone tabs using pseudo-class :focus-visible.
The below code is returning wrong bounding rectangle. After focusing on any element using focus() ...
0
votes
0
answers
26
views
How to Override Inherited :focus-visible Styles in a Chatbot Component?
I am integrating a chatbot into a parent website over which I have no CSS control. The parent site has CSS rules that apply box-shadow to elements when they are focused (using :focus-visible). These ...
0
votes
1
answer
72
views
How to change TextInput style and dismiss keyboard with onblur using react-native-paper
I use react-native paper and I need help... I would like to know how to reject the keyboard and also how to deactivate OnFocus when onblur is active
import { View, StyleSheet } from 'react-native';...
2
votes
0
answers
49
views
onFocus, onBlur not triggered in TouchableWithoutFeedback | react-native
The functions onFocus, onBlur of TouchableWithoutFeedback component aren't triggering. I wanted to make this work like the TextInput component, in terms of getting focused and unfocused, when the user ...
0
votes
0
answers
96
views
React Native on Android: Pressable does not register 'focused' or fires onFocus event
I admit, I am not a React Native dev, but I have been looking into a project where the devs has a problem getting onFocus triggered when attaching a keyboard to a phone (yes, it sounds strange, but it ...
0
votes
0
answers
68
views
Kendo Datepicker Onchange event not working
kendo-datepicker I have used change event but it's not shwoing edited date on calendar. Editing date focus should be go on calendar. closed calendar & open again then it's show edited date. Change ...
0
votes
0
answers
32
views
Build angular material component library locally with sourcemaps
we use angular/material components such as MatRadioButton. I've recently been having trouble with the focus jumping to the wrong point on the page on what I think is a blur event. I haven't been able ...
0
votes
1
answer
48
views
function passed as prop not working in React Native
I'm having an issue in my code, so basically I have a function called StoreScreen
where I call a search bar that I created called SearchBar and from the StoreScreen I need to access the onFocus of the ...
0
votes
1
answer
59
views
Android TV Item onFocus Zoom
Using the below function, I am trying to expand the height and width of an item in focus. The trouble I'm facing is the height is expanding towards the bottom only and the top seems to be fixed. I ...
0
votes
0
answers
25
views
XD Soft - DateTimePicker - Same Day - Time Slot Color on focus/Clicked is not changing
Issue is on same day background Color for Time slot will not change when clicked or selected.
It is selected and emails are sent also but only issue is it will not change color when selected.
For next ...
0
votes
1
answer
110
views
show/hide a component onFocus and onBlur in react native
I am developing a small app where i have a file contain medicines "name, thumbnail and image address" called medicines.js file. This file and related images are stored in local folders.
I am ...
0
votes
1
answer
83
views
Can I detect whether a key is pressed when a window gains focus?
I am writing a little page that opens a URL in a new tab, waits for it to close, and then opens another URL in a new tab and so on through a list of URLs.
To get the next URL to open when the last one ...
0
votes
0
answers
62
views
Contenteditable div doesn't focus on iPad using requestAnimationFrame
I'm working on a React app that includes contenteditable divs. I'm trying to implement a feature where clicking a button toggles the editing state of the div, and then the div is automatically focused ...
0
votes
1
answer
566
views
Reset focus when <h1> renders in react
When a new page heading renders, I want to reset focus on that page, such that hitting <tab> will cause the browser to go to the focusable/tabbable element after this primary page heading.
0
votes
1
answer
377
views
angular onblur works incorrectly when clicking input in div
I'm giving a tabindex to the div and closing the div with on blur but when I click on the input inside the div, the div closes. How can I solve this?
app.component.html
<button (click)="...