mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-15 19:06:50 +00:00
14 lines
272 B
JavaScript
14 lines
272 B
JavaScript
import { Controller } from "stimulus";
|
|
|
|
export default class extends Controller {
|
|
static targets = ["input"];
|
|
|
|
update(event) {
|
|
const value = event.currentTarget.dataset.updateinputValue;
|
|
|
|
this.inputTargets.forEach((t) => {
|
|
t.value = value;
|
|
});
|
|
}
|
|
}
|