Clear error state when you start editing

- It feels wrong to persist the error state while you're fixing the command
This commit is contained in:
Jason Zimdars
2025-05-07 11:52:20 -05:00
parent 22b842026a
commit 28659c1295
2 changed files with 5 additions and 1 deletions
@@ -28,6 +28,10 @@ export default class extends Controller {
}
}
hideError() {
this.element.classList.remove(this.errorClass)
}
async #handleErrorResponse(response) {
const status = response.status
const message = await response.text()