# Anulando el botón "toggle reply"

**URL:** <https://meta.discourse.org/t/overriding-toggle-reply-button/120553>\
**Category:** Development\
**Created:** [17 Junio, 2019 06:06 UTC](https://meta.discourse.org/t/overriding-toggle-reply-button/120553 "2019-06-17T06:06:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [18 Junio, 2019 16:29 UTC](https://meta.discourse.org/t/overriding-toggle-reply-button/120553/2 "2019-06-18T16:29:32Z")

</div>

Looks like this was a bug in the plugin api:

[https://github.com/discourse/discourse/commit/6fec4982d903cbb088f95b5dcae7b67f52a90e99](https://github.com/discourse/discourse/commit/6fec4982d903cbb088f95b5dcae7b67f52a90e99)

The issue here is that we were only looking in the container for the widget class, which only works if it’s the only widget exported by a javascript file.

This patch allows us to look up any widget registered with that name.

---

_[View the full topic](https://meta.discourse.org/t/overriding-toggle-reply-button/120553)._
