[MGNLUI-6507] Dialog close handlers executed twice Created: 12/Jan/21  Updated: 12/Jan/21

Status: Open
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.5
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Roman Kovařík Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 28m
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Steps to reproduce

  1.  Add breakpoint to com.vaadin.ui.Window#close
  2.  Close a dialog

Expected results

Close handler is executed just once. 

Actual results

Close handlers are executed twice.

Workaround

Condition is your custom close handler.

Development notes

Default impl of the CloseHandler just closes the Vaadin Window. The second call is ignored.

The issue might be problematic in custom close handlers where the second call might  break the logic.

 

 


Generated at Mon Feb 12 09:37:10 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.