Skip to content

Commit

Permalink
chore: merge branch 'main' into refactor-editable-dismiss-layer
Browse files Browse the repository at this point in the history
  • Loading branch information
epr3 committed Jun 26, 2024
2 parents 0d2bb1c + bed3a30 commit 73efecd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/radix-vue/src/Editable/EditablePreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ const placeholder = computed(() => context.placeholder.value?.preview)
function handleFocus() {
console.log('focus', context.activationMode.value)
if (context.activationMode.value === 'focus')
context.isEditing.value = true
context.edit()
}
function handleDoubleClick() {
if (context.activationMode.value === 'dblclick')
context.isEditing.value = true
context.edit()
}
</script>

Expand Down

0 comments on commit 73efecd

Please sign in to comment.