Fix reopening modal when widget is toggled
What does this MR do and why?
When modal data is set, a modal displays finding details. Closing the modal, collapsing the widget, and re-expanding it causes the modal to be re-opened because we do not reset modal data on collapse. This MR fixes that.
Screenshots or screen recordings
The bug:
The fixed version:
How to set up and validate locally
- Enable feature flag:
refactor_security_extension
- Create an MR that produces findings
- Expand the MR Widget
- Click on a finding
- Close the modal
- Collapse the MR Widget
- Re-expand the MR Widget
The fixed version should simply expand the widget. The buggy version re-opens the modal.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #387648 (closed)