mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
remove native-header element
This commit is contained in:
1 parent
bde8097288
commit
3f6cdcd15b
3 files changed
+1
-18
No files matched your search
@@ -10,7 +10,6 @@ import ToggleCookies from './elements/toggle_cookies'
|
|||||||
import DisableHidden from './elements/disable_hidden'
|
import DisableHidden from './elements/disable_hidden'
|
||||||
import TurboModal from './elements/turbo_modal'
|
import TurboModal from './elements/turbo_modal'
|
||||||
import NativeAction from './elements/native_action'
|
import NativeAction from './elements/native_action'
|
||||||
import NativeHeader from './elements/native_header'
|
|
||||||
import FileDropzone from './elements/file_dropzone'
|
import FileDropzone from './elements/file_dropzone'
|
||||||
import MenuActive from './elements/menu_active'
|
import MenuActive from './elements/menu_active'
|
||||||
import ClipboardCopy from './elements/clipboard_copy'
|
import ClipboardCopy from './elements/clipboard_copy'
|
||||||
@@ -109,7 +108,6 @@ safeRegisterElement('toggle-visible', ToggleVisible)
|
|||||||
safeRegisterElement('disable-hidden', DisableHidden)
|
safeRegisterElement('disable-hidden', DisableHidden)
|
||||||
safeRegisterElement('turbo-modal', TurboModal)
|
safeRegisterElement('turbo-modal', TurboModal)
|
||||||
safeRegisterElement('native-action', NativeAction)
|
safeRegisterElement('native-action', NativeAction)
|
||||||
safeRegisterElement('native-header', NativeHeader)
|
|
||||||
safeRegisterElement('file-dropzone', FileDropzone)
|
safeRegisterElement('file-dropzone', FileDropzone)
|
||||||
safeRegisterElement('menu-active', MenuActive)
|
safeRegisterElement('menu-active', MenuActive)
|
||||||
safeRegisterElement('clipboard-copy', ClipboardCopy)
|
safeRegisterElement('clipboard-copy', ClipboardCopy)
|
||||||
|
|||||||
@@ -167,7 +167,6 @@ markdown-editor [contenteditable] p {
|
|||||||
margin-bottom: 18px;
|
margin-bottom: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
native-action,
|
native-action {
|
||||||
native-header {
|
|
||||||
display: contents;
|
display: contents;
|
||||||
}
|
}
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
export default class extends HTMLElement {
|
|
||||||
connectedCallback () {
|
|
||||||
window.webkit?.messageHandlers?.native?.postMessage({
|
|
||||||
type: 'header',
|
|
||||||
op: 'add',
|
|
||||||
title: this.dataset.label || this.querySelector('h1')?.textContent?.trim() || '',
|
|
||||||
search: 'search' in this.dataset
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
disconnectedCallback () {
|
|
||||||
window.webkit?.messageHandlers?.native?.postMessage({ type: 'header', op: 'remove' })
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user