MR header "Copy branch name" button tooltip occasionally shows `undefined`
Summary
Summary The tooltip on the MR widget's "copy branch name" button occasionally displays "undefined":
Steps to reproduce
- Visit an MR page (e.g. !111789 (merged))
- Click on "Copy Branch name", new tooltip should be "Copied".
- Hover or focus the clipboard button again
What is the current bug behavior?
- Tooltip is undefined.
What is the expected correct behavior?
- Tooltip is "Copy Branch name"
Possible fixes
- This problem was introduced by !107790 (merged), the title is removed during copy and is not restored correctly.
- This bug came back! It was first reported here #268144 (closed)
Edited by Miguel Rincon