vue-devui 1.6.6 → 1.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7932,7 +7932,7 @@ function useSelect(props, selectRef, ctx, focus, blur, isSelectFocus, t) {
7932
7932
  };
7933
7933
  const getInjectOptions = (values) => {
7934
7934
  return values.map((value) => {
7935
- if (props.multiple && props.allowCreate) {
7935
+ if (props.allowCreate) {
7936
7936
  const option = injectOptions.value.get(value);
7937
7937
  if (option) {
7938
7938
  return option;
@@ -8006,6 +8006,9 @@ function useSelect(props, selectRef, ctx, focus, blur, isSelectFocus, t) {
8006
8006
  }
8007
8007
  getMultipleSelected(checkedItems);
8008
8008
  } else {
8009
+ if (item.create) {
8010
+ filterQuery.value = "";
8011
+ }
8009
8012
  ctx.emit("update:modelValue", item.value);
8010
8013
  getSingleSelected(item);
8011
8014
  toggleChange(false);