From f9a36f3ae7d9e8f8995e6bec4d1c2eab0abff913 Mon Sep 17 00:00:00 2001 From: DatDang Date: Mon, 15 Jul 2024 09:55:19 +0700 Subject: [PATCH] Fix focus highlight of signature on Firefox --- lib/utils/javascript_utils.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/utils/javascript_utils.dart b/lib/utils/javascript_utils.dart index df36ac12..f8182930 100644 --- a/lib/utils/javascript_utils.dart +++ b/lib/utils/javascript_utils.dart @@ -76,6 +76,11 @@ class JavascriptUtils { } } } + var browserName = getBrowserName(); + var signatureButton = document.querySelector('.tmail-signature-button'); + if (browserName === 'Firefox' && signatureButton) { + signatureButton.style.userSelect = 'none'; + } '''; static const String jsHandleRemoveSignature = '''