MCPcopy Create free account
hub / github.com/docusealco/docuseal / connectedCallback

Method connectedCallback

app/javascript/elements/scroll_buttons.js:2–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export default class extends HTMLElement {
2 connectedCallback () {
3 this.header = document.querySelector('#signing_form_header')
4
5 window.addEventListener('scroll', this.onScroll)
6 window.addEventListener('resize', this.onResize)
7
8 if (!this.isNarrow() && this.isHeaderNotVisible()) {
9 this.showButtons({ animate: false })
10 }
11 }
12
13 disconnectedCallback () {
14 window.removeEventListener('scroll', this.onScroll)

Callers

nothing calls this directly

Calls 3

isNarrowMethod · 0.80
isHeaderNotVisibleMethod · 0.80
showButtonsMethod · 0.80

Tested by

no test coverage detected