Fix creating custom names for recommend collection fields on new collection setup drawer (#6451)

Fixes #6381
This commit is contained in:
Rijk van Zanten
2021-06-22 19:22:05 -04:00
committed by GitHub
parent e45a3e0570
commit 0766f6b608
2 changed files with 3 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ import slugify from '@sindresorhus/slugify';
import { omit } from 'lodash';
export default defineComponent({
emits: ['click', 'keydown', 'update:modelValue'],
emits: ['click', 'keydown', 'update:modelValue', 'focus'],
inheritAttrs: false,
props: {
autofocus: {
@@ -149,6 +149,7 @@ export default defineComponent({
trimIfEnabled();
attrs?.onBlur?.(e);
},
focus: (e: PointerEvent) => emit('focus', e),
}));
const attributes = computed(() => omit(attrs, ['class']));
const classes = computed(() => [

View File

@@ -80,8 +80,7 @@
v-model="info.name"
class="monospace"
:class="{ active: info.enabled }"
clickable
@click="info.enabled = true"
@focus="info.enabled = true"
>
<template #prepend>
<v-checkbox v-model="info.enabled" />