# Fix editor stealing click events from copy-error button \(\#4046\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/80c0d09b15588e1f995113f5c5801e62b8253214)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 80c0d09b15588e1f995113f5c5801e62b8253214

Requested commit: 80c0d09b15588e1f995113f5c5801e62b8253214

Commit: 80c0d09b15588e1f995113f5c5801e62b8253214

Tree: 57687c7ca0d24166855f35e86076f8f3ba199547

Author: Thorsten Ball

Committer: GitHub

## Message

```
Fix editor stealing click events from copy-error button (#4046)

This fixes the click event on the "copy error message" button by
changing the `editor` element to ignore mouse-down events when the
default was prevented. That's similar to how `div` does it.

Release Notes:

- Fixed a bug that prevented "copy error message" button from being
clicked.
```

## Parents

- [9c672f7820d77f122a822a063ed2b7d8a667a461](https://git.cafe/gitcafe/zed/commit/9c672f7820d77f122a822a063ed2b7d8a667a461?format=markdown)

- [74f3366f425d070a450abadc68d774f3367efb9f](https://git.cafe/gitcafe/zed/commit/74f3366f425d070a450abadc68d774f3367efb9f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/80c0d09b15588e1f995113f5c5801e62b8253214?format=markdown)
