# Debug help — my plugin is breaking the Select-to-Reply-with-Quote feature

**URL:** https://meta.discourse.org/t/debug-help-my-plugin-is-breaking-the-select-to-reply-with-quote-feature/306709
**Category:** Development
**Created:** [May 4, 2024, 6:29am UTC](https://meta.discourse.org/t/debug-help-my-plugin-is-breaking-the-select-to-reply-with-quote-feature/306709 "2024-05-04T06:29:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![alxndr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxndr/32/102300_2.png) [@alxndr](https://meta.discourse.org/u/alxndr)
#### Post date: [May 4, 2024, 6:29am UTC](https://meta.discourse.org/t/debug-help-my-plugin-is-breaking-the-select-to-reply-with-quote-feature/306709/1 "2024-05-04T06:29:31Z")

</div>

Hoping someone can help me narrow down this issue — I created [a plugin](https://github.com/kglw-dot-net/discourse-plugin-gizzard-setlist) but it inadvertently disables the “quote selected text” popup & keyboard shortcut.

When the plugin is enabled, selecting text in a post no longer shows the “quote reply for highlighted text” feature — such that the `PostTextSelectionToolbar` popup doesn’t appear, pressing `q` doesn’t work, and clicking the Reply button starts a reply but not including the quote of selected text.

My hunch is that it’s related to how I’m loading third-party JS dependencies? I’m using [the JavaScript `loadScript`](https://github.com/kglw-dot-net/discourse-gizzard-setlist/blob/b647435f54dbba906e51f1d917f1507eafa84a63/assets/javascripts/discourse/initializers/setlist.js#L1) from `discourse/lib/load-script` to [load `tippy` and its dependency `Popper` from unpkg.com](https://github.com/kglw-dot-net/discourse-gizzard-setlist/blob/main/assets/javascripts/discourse/initializers/setlist.js#L144-L146)… Is there a better way to selectively load JS assets? (Or am I better off just including those assets on e.g. all topic pages and not trying to selectively load them?)

Here are [my notes about](https://github.com/kglw-dot-net/discourse-plugin-gizzard-setlist/issues/1) about this bug. Any & all help is greatly appreciated!
