Skip to content

Commit

Permalink
fix(Editable): use exposed edit function to trigger edit (#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
iammola authored Jun 26, 2024
1 parent 3a79e51 commit bed3a30
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 @@ -17,11 +17,11 @@ const placeholder = computed(() => context.placeholder.value?.preview)
function handleFocus() {
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 bed3a30

Please sign in to comment.