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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user