1import { Controller } from "@hotwired/stimulus" 2import { useTransition } from 'stimulus-use' 3 4export default class extends Controller { 5 static targets = [ "dropdown" ] 6 7 connect() { 8 useTransition(this, { element: this.dropdownTarget }) 9 } 10 11 toggle() { 12 this.toggleTransition() 13 } 14 15 hide (event) { 16 if (!this.element.contains(event.target) && !this.dropdownTarget.classList.contains('hidden')) { 17 this.leave() 18 } 19 } 20};
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.