# Use a handler instead of an action for clicks · gitcafe/zed

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

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

Visibility: public

Requested revision: cc9eff89f5226c419a9e697660208b964c1cf544

Requested commit: cc9eff89f5226c419a9e697660208b964c1cf544

Commit: cc9eff89f5226c419a9e697660208b964c1cf544

Tree: 6a588f7a43499f069abe09e456bd58f2e370cbf1

Author: Antonio Scandurra

Committer: Antonio Scandurra

## Message

```
Use a handler instead of an action for clicks

This prevents dispatching actions on buttons that were not the target of the click.

Co-Authored-By: Marshall <marshall@zed.dev>

```

## Parents

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

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