1import { Controller } from "@hotwired/stimulus"; 2 3// A multiple Web Awesome combobox keeps its placeholder beside the selected 4// chips and never reports the `blank` state, so the component owns the rule: 5// the placeholder is shown only while nothing is selected. 6export default class ComboboxController extends Controller { 7 static values = { placeholder: String }; 8 9 connect() { 10 this.sync(); 11 } 12 13 sync() { 14 const selected = Array.isArray(this.element.value) 15 ? this.element.value.length > 0 16 : Boolean(this.element.value); 17 this.element.placeholder = selected ? "" : this.placeholderValue; 18 } 19}
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.