mirror of
https://github.com/zulip/zulip.git
synced 2025-10-25 00:53:56 +00:00
compose: Use the passed container value to remove the banner.
This commit is contained in:
committed by
Tim Abbott
parent
e0cb3c6908
commit
e22c44131b
@@ -106,7 +106,9 @@ export function show_error_message(
|
||||
$container: JQuery,
|
||||
$bad_input?: JQuery,
|
||||
): void {
|
||||
$(`#compose_banners .${CSS.escape(classname)}`).remove();
|
||||
// To prevent the same banner from appearing twice,
|
||||
// we remove the banner with a matched classname.
|
||||
$container.find(`.${CSS.escape(classname)}`).remove();
|
||||
|
||||
const new_row = render_compose_banner({
|
||||
banner_type: ERROR,
|
||||
|
||||
Reference in New Issue
Block a user