-
Notifications
You must be signed in to change notification settings - Fork 15k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why prompt is not supported? #472
Comments
Prompt blocks the thread while inputting data from the user so i guess that is the main reason. |
Same thing with |
It would be interesting to know whether the vex library, which aims to replace the core dialogs, can circumvent that restriction. |
There is no native So I'm closing this as won't fix. |
Possible solution: Promise-based Alert, Confirm and Prompt replacement. |
+1 and related to: #4134 |
This looks like a "fake" prompt in the window, but it's a separate blocking synchronous window, just like prompt. |
Those are fake, in the sense that it's inside the window. Mine are outside if it. |
Hi, Is there any way for this issue? |
FYI for those considering @JamesKyburz's link, the Github page states the solution is Edit: Nevermind, misread documentation. Thanks for the correction @JamesKyburz. |
@noahbengam No, https://github.com/jameskyburz/dialogs is a fix in response to alert, prompt, confirm not always being available. From the readme: Theses native counterparts block the UI thread, are are not allowed in electron and some chrome extention contexts. |
Hey, thanks a lot man this is working! Its the best workaround for now. But I agree with every other posts above that mentionned that a built-in prompt feature would be very useful to have implemented by Electron. |
Since Dialogs are working fine and are fully customizable, I do not see why you would need prompt. If you just want to use a shortcut, there are plenty of libs providing user inputs with JS solution and which are framework agnostics. Enjoy Native Dialog :) |
For anybody who really wants native prompt windows in their Electron app, I've written this library. It's not perfect, but it gets the job done. |
We use this |
Thank you @konsumer ! Still a good solution 4 years after published. |
I wish |
Same complaint here. Sometimes, quick & dirty is the way to go, especially when you're scaffolding something. |
If you want consistency across different OS's, just use https://electron.guide/electron-alert/ It's powered by SweetAlert2. |
Cannot believe this issue has been open since 2014. (Marked as closed, sure, but the problem has absolutely not been solved.) |
I cannot for the life of me understand why confirm is supported but prompt is not. I don't want to be ungrateful for the hard work you guys have put into creating this platform, but don't you want it to be as easy to use and as valuable as possible? |
to electron using this example electron/electron#472 (comment)
2024, i still can't understand why it's not supported, it's basic input! |
The reason for closing was strange too, and it mentions atom-shell, is that how Electron was called? But Electron is based on Chromium and I'm sure Chromium already includes code for I think this issue, 10 years after it was created, should be reviewed again taking into account the current state of Electron. |
What is the reason that
prompt
is not supported?How could input box be created?
I see that prompt could be almost like
confirm
:Here is possible solution.
The text was updated successfully, but these errors were encountered: