Fix: resetting validationError on update.

This commit is contained in:
John Livingston
2024-06-13 12:48:58 +02:00
parent 1d943716dd
commit 63d8e9789e
4 changed files with 28 additions and 2 deletions

View File

@ -71,6 +71,17 @@ export class ChannelEmojisElement extends LivechatElement {
this.requestUpdate()
}
/**
* Resets the validation errors.
* @param ev the vent
*/
public resetValidation (_ev?: Event): void {
if (this.validationError) {
this.validationError = undefined
this.requestUpdate('_validationError')
}
}
/**
* Saves the emojis form.
* @param ev event