Comments (5)
here is the main code..
function showAlert() {
alert("This is a test alert.");
window.focus();
}
function showPopupAndFocusInput() {
alert("This is a test alert.");
document.getElementById("myInput").focus();
window.focus();
}
from electron.
I can confirm this on Ubuntu, however, I cannot confirm the claim that this has always been this way. The Fiddle works perfectly fine for me with v28.2.7
and breaks starting with v29.0.0-alpha.1
. v27.3.6
and v26.6.10
also work for me.
from electron.
I can confirm this on Ubuntu, however, I cannot confirm the claim that this has always been this way. The Fiddle works perfectly fine for me with
v28.2.7
and breaks starting withv29.0.0-alpha.1
.v27.3.6
andv26.6.10
also work for me.
I would not be surprised if Windows changed something that broke it for Electron.
@Maniiisha-sachdeva are you implying that calling window.focus();
after a popup will repair this focus issue?
I'll have to try this on Monday.
from electron.
I tried calling window.focus
and .focus
on an input element, and neither fixed the focus issue.
Also tried these versions:
(just the alert
/confirm
bug, not the focus
function)
version worked
28.2.7 ❌
27.3.6 ❌
26.6.10 ❌
21.0.0-beta.3 ❌ //the version of 21 that I noticed the issue with previously.
24.1.0 ❌ //version I had bumped the project to from 21.
Seeing that v28
, v27
and v26
failed for me but not @Prinzhorn, I believe this is primarily a Windows issue. I can't test other versions of Windows unfortunatly. But I find it quite bizarre that it stops working on Ubuntu with v29
.
Either way it's reassuring that it's not just me and my code. I'll have to implement a workaround for now.
edit: changed emoji for clarity.
from electron.
in this when i changed the input type to number then i am able to change the number by its up and down arrow but not able to type in it and as i am switching the tab its started working can i work on it further?
from electron.
Related Issues (20)
- [Feature Request]: "blocking" version of setSaveDialogOptions HOT 6
- [Bug]: autoUpdater for macOS doesn't respect to proxy-server settings HOT 3
- [Bug]: 无法结局!! HOT 1
- [Bug]: fs module on Windows cannot handle special characters HOT 2
- [Bug]: In macOS, animations rendered in gif or threejs always leave a white semi-transparent background
- [Bug]: When making a folder using Electron-forge, after installing the exe file, a green boot page will pop up. How to close it? HOT 1
- [Bug]: setContentSize on BrowserWindow resizes the whole window anyway HOT 2
- [Bug]: On windows on quitting app not all the processes opened by electron are getting closed HOT 1
- [Documentation][Bug]: Getting Started last step HOT 2
- [Bug]: can't build electron with debugging page guide HOT 4
- [Bug]: Window resizes incrementally on win.show HOT 1
- [Bug]: Frameless Mica windows animate and jiggle when shown
- [Feature Request]: RPM depend on so files instead of package names HOT 2
- [Bug]: win11 electron unable to trash nested folders. HOT 3
- [Bug]: shell.showItemInFolder does not correctly open the folder if it includes a hash (#) HOT 2
- [Bug]: Windowing Issues in Electron and Chromium HOT 2
- [Bug]: display id non existent in linux HOT 2
- [Bug]: `app.relaunch` crashes on Mac App Store
- [Bug]: webkit-app-region: no-drag is not handled properly
- [Bug]: cannot resolve https://github.com/electron/electron/releases/download/v27.0.0+wvcus/electron-v27.0.0+wvcus-win32-x64.zip: status code 404 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron.