mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 18:06:44 +00:00
tooltip: Fix tooltip to correctly parse HTML content.
Fix compose button error tooltip to correctly parse HTML content.
This commit is contained in:
@@ -236,7 +236,10 @@ export function initialize(): void {
|
|||||||
|
|
||||||
if (instance.reference.classList.contains("disabled-message-send-controls")) {
|
if (instance.reference.classList.contains("disabled-message-send-controls")) {
|
||||||
const error_message = compose_validate.get_disabled_send_tooltip();
|
const error_message = compose_validate.get_disabled_send_tooltip();
|
||||||
instance.setContent(error_message);
|
instance.setContent(parse_html(error_message));
|
||||||
|
// `display: flex` doesn't show the tooltip content inline when <i>general chat</i>
|
||||||
|
// is in the error message.
|
||||||
|
$(instance.popper).find(".tippy-content").css("display", "block");
|
||||||
|
|
||||||
if (!error_message) {
|
if (!error_message) {
|
||||||
blueslip.error("Compose send button incorrectly disabled.");
|
blueslip.error("Compose send button incorrectly disabled.");
|
||||||
|
|||||||
Reference in New Issue
Block a user