Sha256: 9303127ae4cfe1b5e248f76e2fa3a0c623ac05116b9a0f80919aa44cd8e97622
Contents?: true
Size: 426 Bytes
Versions: 5
Compression:
Stored size: 426 Bytes
Contents
import { Controller } from '@hotwired/stimulus' export default class extends Controller { static values = { customersUrl: String } async search({ detail: { query, controller } }) { controller.resultsValue = (await (await fetch(`${this.customersUrlValue}?q[name_or_variants_including_master_sku_cont]=${query}`)).text()) } submit(event) { event.detail.resultTarget.querySelector('form').submit() } }
Version data entries
5 entries across 5 versions & 1 rubygems