question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: close modal dialog by clicking outside

See original GitHub issue

Hi! 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:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rjaroscommented, Jun 24, 2020

You have found a bug in the Dialog class. The order of constructor parameters scrollable, centered and escape is mixed up. So at the moment you can create your Dialog with scrollable = true and it will work 😉 Fix is on the way.

0reactions
rjaroscommented, Jun 30, 2020

Released with 3.11.0

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found