mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
adjust title
This commit is contained in:
1 parent
da9e7c6366
commit
e012b7f5ac
14 files changed
+38
-29
No files matched your search
@@ -39,7 +39,8 @@ if (handlers?.native && window === window.top) {
|
||||
|
||||
if (!link) return
|
||||
|
||||
const title = link.dataset.nativeTitle || link.getAttribute('aria-label') || link.closest('[data-native-title]')?.dataset.nativeTitle || link.innerText.trim()
|
||||
const action = link.closest('native-action, native-menu-action')
|
||||
const title = link.dataset.nativeTitle || link.getAttribute('aria-label') || link.closest('[data-native-title]')?.dataset.nativeTitle || action?.dataset.label || action?.textContent.replace(/\s+/g, ' ').trim()
|
||||
|
||||
if (!title) return
|
||||
|
||||
|
||||
Reference in new issue
Block a user