Skip to content

Reset input field when modal was closed

What does this MR do and why?

Closes #466435 (closed)

  1. It resets the value in the input field when the modal gets closed.
  2. This MR removes also a data attribute I stumbled upon which was unused in the component.

Screenshots or screen recordings

Before After
Screen_Recording_2024-06-10_at_10.27.45 Screen_Recording_2024-06-10_at_16.15.55

How to set up and validate locally

  1. On localhost, go to any project
  2. go to Code => Branches
  3. click on the "..." menu on the right to open the Modal.
  4. Type "something" in the input field
  5. Close the modal (either click on the background, on the 'x', or on the 'Cancel' button)
  6. Open modal again
  7. Input field is now empty

Related to #466435 (closed)

Edited by Vanessa Otto

Merge request reports