Skip to content

Using editable machine with Vue's v-model #767

Closed Answered by goodpixels
goodpixels asked this question in Q&A
Discussion options

You must be logged in to vote

In the end I did this, and it worked:

const [state, send] = useMachine(
  editable.machine({
    id: attrs.id,
    value: attrs.modelValue,
    activationMode: "none",
    onSubmit: ({ value }) => emit("update:modelValue", value),
  }),
)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by goodpixels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant