Vulnerability details comment placeholder does not work on focus on safari
Problem
On safari, it's not possible to add a comment in the discussions on the vulnerability details page. A button cannot be focused on safari and hence the @focus
event does not work.
Follow up from comment:
Hey, just FYI that this behaviour does not work in Safari by design. You can't focus a button on that page now to add a comment.
Solution
It would be better to replace the button here with a textarea, which is more in line with how the placeholder is done in issues.
Verification steps
The fix is for Safari, so make sure to test on Safari, but should of course still also work on Chrome/Firefox/... For safari it might be easier to test on staging if you can't log in on production.
- go to this vulnerability
- in the discussion section at the bottom, verify that it's possible to press the TAB key and focus the "Add a comment" textarea placeholder and that it opens the editor once it receives focus.
- verify that clicking the placeholder also opens the editor
Edited by Lorenz van Herwaarden