message: Fix for the - added clearIncorrectValuesCallback
diff: @@ -281,6 +281,10 @@ export class QuestionSelectBase extends Question {
  var itemValue = ItemValue.getItemByValue(this.filteredChoices, val);
  return !!itemValue && !itemValue.isEnabled;
  }
  + /**
  + * If the clearIncorrectValuesCallback is set, it is used to clear incorrrect values instead of default behaviour.
  + */
  + public clearIncorrectValuesCallback: () => void;
  /**
  * The list of items. Every item has value and text. If text is empty, the value is rendered. The item text supports markdown.
  * @see choicesByUrl
  @@ -606,8 +610,12 @@ export class QuestionSelectBase extends Question {
  this.survey.questionCountByValueName(this.getValueName()) > 1
  )
  return;
  + if (this.clearIncorrectValuesCallback) {
  + this.clearIncorrectValuesCallback();
  + } else {
  this.clearIncorrectValuesCore();
  }
  + }
  public clearValueIfInvisible() {
  super.clearValueIfInvisible();
  this.clearIncorrectValues();
  