# ui: Don't add an \`on_click\` handler for disabled \`ListItem\`s \(\#23569\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 76bf4686ef35be8ce067d198cfa639e871f99d13

Requested commit: 76bf4686ef35be8ce067d198cfa639e871f99d13

Commit: 76bf4686ef35be8ce067d198cfa639e871f99d13

Tree: 093d6dea98647461afe8124c6a01beb696eb5a33

Author: Marshall Bowers

Committer: GitHub

## Message

```
ui: Don't add an `on_click` handler for disabled `ListItem`s (#23569)

This PR updates the `ListItem` component to not register an `on_click`
handler for `ListItem`s that are disabled.

When working on #23350 I noticed that even when the context menu entry
was disabled you could still click on the entry to fire the action.

Release Notes:

- Fixed some instances of disabled list items still registering clicks.
```

## Parents

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

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