diff options
author | Giteabot <teabot@gitea.io> | 2023-12-15 11:04:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-15 03:04:37 +0000 |
commit | 6af698fb81b9928c5d88c6bbca4b57229db1c2f3 (patch) | |
tree | b5e424a825ce7d4beada0071bd56e83ced957ef4 /web_src/js/modules | |
parent | 94a05a492df8eea9520117be9fe74f4c28c06101 (diff) | |
download | gitea-6af698fb81b9928c5d88c6bbca4b57229db1c2f3.tar.gz gitea-6af698fb81b9928c5d88c6bbca4b57229db1c2f3.zip |
Polyfill SubmitEvent for PaleMoon (#28441) (#28478)
Backport #28441 by wxiaoguang
Fix #28319
It only polyfills if there is no "SubmitEvent" class, so it has no side
effect for most users.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'web_src/js/modules')
-rw-r--r-- | web_src/js/modules/tippy.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/modules/tippy.js b/web_src/js/modules/tippy.js index ec7ee2141f..9b2f3691cc 100644 --- a/web_src/js/modules/tippy.js +++ b/web_src/js/modules/tippy.js @@ -106,7 +106,7 @@ function switchTitleToTooltip(target) { /** * Creating tooltip tippy instance is expensive, so we only create it when the user hovers over the element * According to https://www.w3.org/TR/DOM-Level-3-Events/#events-mouseevent-event-order , mouseover event is fired before mouseenter event - * Some old browsers like Pale Moon doesn't support "mouseenter(capture)" + * Some browsers like PaleMoon don't support "addEventListener('mouseenter', capture)" * The tippy by default uses "mouseenter" event to show, so we use "mouseover" event to switch to tippy * @param e {Event} */ |