From ec43b41c2fecb25875a0d2e2c7cbcb5ecd8fb21d Mon Sep 17 00:00:00 2001 From: evykassirer Date: Tue, 3 Sep 2024 12:56:52 -0700 Subject: [PATCH] move_topic: Remove extraneous classname on hidden input, fixes bug. We initialize the topic typeahead in the modal with the element `$("#move_topic_form .move_messages_edit_topic")`, which previously was capturing two elements, the second one being a hidden input element. This wasn't causing issues, but once we added `util.the` in the typeahead code we were getting errors for having multiple elements where we expected one. The fix is removing `move_messages_edit_topic` from the hidden element's classnames, since that class is only used for input and styling things. --- web/templates/move_topic_to_stream.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/templates/move_topic_to_stream.hbs b/web/templates/move_topic_to_stream.hbs index 2441af76f9..61f42feb5f 100644 --- a/web/templates/move_topic_to_stream.hbs +++ b/web/templates/move_topic_to_stream.hbs @@ -13,7 +13,7 @@ {{/unless}} - + {{#if from_message_actions_popover}}