PageSourceSearch

https://careers.piperalderman.com.au/assets/sites/controllers/chatbot/dropdown_controller-c2e8e3b6.js

js piperalderman.com.au collected 2026-10-02 06:45:40 UTC 702 bytes, 24 lines download raw bytes

1import {Controller} from '@hotwired/stimulus'
2import {BootstrapWrapper} from 'sites/bootstrap_wrapper'
3
4export default class extends Controller {
5  connect() {
6    this.dropdown = BootstrapWrapper.dropdown(this.element)
7    this.handleHidingDropdownBind = this.handleHidingDropdown.bind(this);
8
9    this.event = this.element.addEventListener('click', (event) => {
10      this.dropdown.toggle()
11    })
12    document.addEventListener("click", this.handleHidingDropdownBind);
13  }
14
15  disconnect() {
16    document.removeEventListener("click", this.handleHidingDropdownBind);
17  }
18
19  handleHidingDropdown(event) {
20    if (!this.element.contains(event.composedPath()[0])) {
21      this.dropdown.hide();
22    }
23  }
24}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.