Comments (6)
When you click the button on the demo page that button gets a focus and click event. Click event cause modal opening. When you close the modal window focus will be returned to the button. And when you hit enter it cause click event on button by default.
So it's not a bug :)
from sweetalert2.
Unfortunately, I'm not sure that is problem. Maybe I'm wrong... In my implementation, I have textareas and other input fields in a form. If the user is focused on a textarea and presses the enter key to create a newline, the old alert will still pop up. The button that was clicked to create the alert is no longer in focus when this occurs.
from sweetalert2.
reproduce that issue with https://jsfiddle.net/ so I can look into it, thanks
from sweetalert2.
Here's a link to the fiddle.
https://jsfiddle.net/nickfederighi/t8w2eLma/11/
Let me know if you have any questions. Thanks for your help.
from sweetalert2.
Thank you for the really great fiddle which is helped me to resolve this issue!
from sweetalert2.
https://github.com/sweetalert2/sweetalert2/releases/tag/v0.2.8
from sweetalert2.
Related Issues (20)
- Please drop your protest ware issue HOT 2
- Copy to clipboard content button HOT 1
- Autor - YOU NAZI HOT 3
- no patch yet for package audit HOT 1
- In earlier versions of Chrome (e.g. Chrome87) pop-ups are not normal. HOT 1
- sweet alert break background layout. HOT 2
- Circle animation for success icon breaks when timing exceeds 4 seconds HOT 1
- Icons invisible with colored-toast HOT 2
- Timer doesn't seem to be working HOT 1
- Can u also update the integrations with js frameworks? HOT 1
- isVisible not false in .then() HOT 2
- Option for Page Scrolling HOT 4
- How can we add Angular component in sweetalert.
- .NET 8 Blazor - Error: There are multiple .NET runtimes present HOT 3
- support russia HOT 2
- Input Types - Email HOT 3
- Wave Tool accessibility errors SweetAlert2 HOT 1
- Partial<SweetAlertOptions> not working when using spreading operator HOT 1
- showLoaderOnConfirm not showing loader HOT 1
- ERROR ReferenceError: document is not defined at validateCustomTargetElement Angular SSR 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 sweetalert2.