Issue description
After upgrading our Jira service instance on our local server to version 9.x, We then noticed that whenever we want try to share a comment with a user, an alert modal appears asking "Are you sure you want to send this message to the user?" with an Ok and Cancel button. When we click the Ok button, the comments gets posted and that's fine. But whenever we click the Cancel button, the comment still get's posted instead of cancelling the operation.
Expected Result
The Cancel button shouldn't proceed to post the comment, rather it should stop the operation.
1.) Entered the comment

2.) Clicked cancel on the alert modal.
![2023-11-19 16_37_19-[ISD-42636] Fathom Access Request - BWC TEST JIRA.png 2023-11-19 16_37_19-[ISD-42636] Fathom Access Request - BWC TEST JIRA.png](https://us.v-cdn.net/6038660/uploads/images/292640i80CBB297317671D3/2023-11-19%2016_37_19-%5BISD-42636%5D%20Fathom%20Access%20Request%20-%20BWC%20TEST%20JIRA.png)
3.) Comment still get's posted
![2023-11-19 16_38_20-[ISD-42636] Fathom Access Request - BWC TEST JIRA.png 2023-11-19 16_38_20-[ISD-42636] Fathom Access Request - BWC TEST JIRA.png](https://us.v-cdn.net/6038660/uploads/images/292641i1964DCCF2481AE01/2023-11-19%2016_38_20-%5BISD-42636%5D%20Fathom%20Access%20Request%20-%20BWC%20TEST%20JIRA.png)