Reset form automatically

This commit is contained in:
Jorge Manrubia
2025-05-06 09:30:37 +02:00
parent 3954033e61
commit 456463ffef
2 changed files with 7 additions and 1 deletions
@@ -19,6 +19,11 @@ export default class extends Controller {
event.target.select()
}
reset(event) {
console.debug("CALLED!");
this.element.reset()
}
showPicker(event) {
if ("showPicker" in HTMLInputElement.prototype) {
event.target.showPicker()