updateOnChange(flags = {}, changed = false) {
    if (!flags.noUpdateEvent && changed) {
      if (flags.fromSubmission) {
        // Reset the errors when a submission has been made and allow it to revalidate.
        this._errors = [];
      }
      this.triggerChange(flags);
      return true;
    }
    return false;
  }
Update the value on change.
@param {*} flags - The flags to use when triggering the on change event.
@param {boolean} changed - If the value has changed.
@returns {boolean} - If the value changed.