if (value > choices.max) {
      value = choices.max;
      if ("input" === trigger) e.target.value = value;
    }