# onClick event of intellisense popover item

**URL:** <https://discuss.codemirror.net/t/onclick-event-of-intellisense-popover-item/4767>\
**Category:** v5\
**Created:** [July 28, 2022, 5:29am UTC](https://discuss.codemirror.net/t/onclick-event-of-intellisense-popover-item/4767 "2022-07-28T05:29:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anant](https://discuss.codemirror.net/letter_avatar_proxy/v4/letter/a/f9ae1b/32.png) [@anant](https://discuss.codemirror.net/u/anant)\
**Post date:** [July 28, 2022, 5:29am UTC](https://discuss.codemirror.net/t/onclick-event-of-intellisense-popover-item/4767/1 "2022-07-28T05:29:34Z")

</div>

Hi,  
Actually i have a situation were i want to repopulate the intellisense popover with new list on clicking of some item in intellisense popover. So can this be achieved in Codemirror v5?Do we have exposure to onclick event for intellisense popover item? @marijn

Thanks in advance

---

<div class="post-metadata">

**Author:** ![marijn](https://discuss.codemirror.net/user_avatar/discuss.codemirror.net/marijn/32/136_2.png) [@marijn](https://discuss.codemirror.net/u/marijn)\
**Post date:** [July 28, 2022, 8:21am UTC](https://discuss.codemirror.net/t/onclick-event-of-intellisense-popover-item/4767/2 "2022-07-28T08:21:42Z")

</div>

You can handle picking of completions by giving the completion object a `hint` property (see docs), but there’s no way to replace the set of options in the completion dialog, so you’ll probably need a custom setup.
