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.
76bf4686efMarshall Bowers committed on 1/23/2025, 7:58:07 PM· committed by GitHubparent5ef5b75
1 file changedLine totals unavailable