import { Controller } from "@hotwired/stimulus"

export default class extends Controller {
  static targets = [ "resetButton" ]

  resetField () {
    const inputEl = this.element.querySelector('input')
    inputEl.value = inputEl.dataset.defaultValue
  }
}
