fomantic / Fomantic-UI

Fomantic-UI is the official community fork of Semantic-UI
https://fomantic-ui.com
MIT License
3.51k stars 329 forks source link

[modal] When two modals with allowMultiple: true are opened, clicking the dimmer on one will close both regardless of the closable setting on the first #1437

Open Merlin04 opened 4 years ago

Merlin04 commented 4 years ago

Bug Report

I have two modals. Both of them have allowMultiple: true, and the first has closable: false. When I open the first one and then the second one, clicking on the dimmer closes both modals, not just the second one.

Steps to reproduce

  1. Create two modals with allowMultiple: true, with the first one having closable set to false
  2. Open the first one, then the second one
  3. Click on the dimmer

Expected result

Only the second modal closes, with the first remaining open

Actual result

Both modals close, even though I set closable on the first modal to false

Testcase

https://jsfiddle.net/15bd4x20/

Version

2.8.4

Merlin04 commented 4 years ago

From looking at the source code this appears to be intended behavior, there should be an option to disable it.