Skip to content

Commit

Permalink
Fix creating custom names for recommend collection fields on new coll…
Browse files Browse the repository at this point in the history
…ection setup drawer (#6451)

Fixes #6381
  • Loading branch information
rijkvanzanten committed Jun 22, 2021
1 parent e45a3e0 commit 0766f6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/src/components/v-input/v-input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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(() => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down

0 comments on commit 0766f6b

Please sign in to comment.