All Questions
159
questions
0
votes
1
answer
767
views
How manage focus and blur in Angular 17 and Angular Materials
I want to manage focus in my app. In login i want, thats field 'code' focused, after server return result 'true"
@ViewChild('telephone') telephone!:ElementRef<any>
@ViewChild('code') ...
0
votes
0
answers
309
views
How to use window.open() but still focus on original window on Chrome, Angular 14?
I want to traverse the array and open its elements in the new Chrome Tab with their link. However, I don't want it to focus on the new Tab. Just focus on the original window.
Does anybody know any way ...
1
vote
1
answer
1k
views
HTML focus and blur when input checkbox label clicked
I have an HTML label and HTML input checkbox and I need a stream of focus and blur events that behaves correctly when I click on the label.
(In real app there is a Bootstrap component that hides the ...
0
votes
1
answer
424
views
Prevent a list based on an input's focus to disappear when clicking into it
I have been tried to write a custom inspired element with an input field where the user can write and a list that appears and disappears based on input's focus.
const unitsList = {lenght:{fm:"...
1
vote
0
answers
80
views
How to prevent focus from going to browser links?
gestCookiesBtn.addEventListener('blur', function () {
// prevent focus from going to browser links
});
The idea is to prevent focus from going to browser links when event blur occurs on a ...
0
votes
2
answers
608
views
Is there a jquery event the runs just before focus leaves an element or just before the next element gains focus?
I have a form with two input elements that are somewhat intertwined. In element#1 (element #2 is right after element#1 in the tabindex order), once the user tries to leave that field, I run an ajax ...
0
votes
1
answer
301
views
Toggle button not toggling when I use Blur() to hide popup when I clicking out of popup
I`m trying to keep toggle button and $('#popup').blur together but unfortunately the trigger stops hiding.
How can I solve this problem?
I have this trigger in header
$(document).ready(function() ...
0
votes
2
answers
1k
views
How to handle change of focus between two specific elements
I have two (or more) HTML elements and I want to execute a callback whenever any of them loses focus except when the focus is moved between them. In other words I want to treat those elements like a ...
0
votes
1
answer
476
views
How to clone a state variable to use as a reference in react?
This is something I couldn't find a good answer on, but I solved it; this is the question:
I want to have an input element reset if not in focus
type Props = {
inputRef: any;
value: string;
...
5
votes
1
answer
17k
views
How to remove focus from Vuetify v-select?
I'm facing a problem with the <v-select> component from Vuetify.
I have a v-dialog, which opens up when I click a button. That works fine.
In that v-dialog, there are 3 v-select, each in its v-...
0
votes
1
answer
53
views
jQuery - Clicking link fails because the containing element disappears beforehand
I'm writing a simple suggestions box for an input field. When I click into the field, a hidden element appears underneath the box, containing some links matching the field's content.
The suggestion ...
3
votes
1
answer
6k
views
Hide popup when input is blurred except when popup is clicked
I have the following use case:
There is an input and a popup should be displayed next to the input whenever it has focus. So while the input has focus, the user can either type into the input or use ...
0
votes
1
answer
320
views
Destination dropdown list automatically closes when clicking on scrolling mechanism to scroll down
IE11, when I focus the input, a drop-down list is displayed, when I roll the scroll bar of the drop-down list, the input is blurred.
I expect it to still focus input when I roll the scroll bar of the ...
0
votes
1
answer
1k
views
On form inputs focus, show div. hide div on blur for multiple inputs and hidden divs
I have 2 text input fields that have a hidden div associated with each one.
When the client focuses in each text field the hidden div will appear. If the client clicks/focuses anywhere but the text ...