Feature request: close modal dialog by clicking outside
See original GitHub issueHi! Me again.
I’m still playing with your examples repo and recently I found out that pl.treksoft.kvision.modal.Dialog
cannot be closed by just clicking outside.
I’ve tried to implement this by myself (via jQuery bindings), but failed, because I don’t know enough jQuery =/
Can you implement this by additional flag in Dialog
or Modal
classes? Or maybe it’s better to add event handler with something like clickOutside
? I mean this:
onEvent {
clickOutside = {
hide()
}
}
Thank you.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Disable click outside of bootstrap modal area to close modal
On Options chapter, in the page you linked, you can see the backdrop option. Passing this option with value 'static' will prevent closing...
Read more >How to disable close modal when click outside · Issue #12272 ...
Existing Component Yes Component Name Dialog Description Dialog Component - How to disable close modal when click outside?
Read more >Make dismissing a modal pop-up by clicking outside window ...
As a Knack user, I want to know that there is consistency in my mouse actions. Some examples: mouseup (release not click) outside...
Read more >Close when clicking outside modal or escape button - Drupal
Close when clicking outside modal or escape button ; Reviewed & tested by the community ; Project: Modal forms (with ctools) ; Version:...
Read more >Dialog / How To / Close Dialog when click outside of its region
Close Dialog when click outside of its region in Angular Dialog component ... By default, dialog can be closed by pressing Esc key...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You have found a bug in the
Dialog
class. The order of constructor parametersscrollable
,centered
andescape
is mixed up. So at the moment you can create yourDialog
withscrollable = true
and it will work 😉 Fix is on the way.Released with 3.11.0