Sha256: 345a9162bb9f148fbbf1235f18d344e7cf98abe829656ad917f22366b0e131f7
Contents?: true
Size: 400 Bytes
Versions: 2
Compression:
Stored size: 400 Bytes
Contents
import { Controller } from "stimulus" export default class extends Controller { static get targets() { return [ "signedBlobId", "filename" ] } pick(event) { let select = event.currentTarget let option = select.options[select.selectedIndex] this.signedBlobIdTarget.value = option.dataset.signedBlobId || "" this.filenameTarget.value = option.dataset.filename || "" } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spina-2.2.0 | app/assets/javascripts/spina/controllers/attachment_picker_controller.js |
spina-2.1.1 | app/assets/javascripts/spina/controllers/attachment_picker_controller.js |