-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How refreshContent component? #306
Comments
I have the same issue, UPDATE: Due to some limitation on my side, I can use only the Composition API method - |
@andrei-nikic-co plz can u share a quick example here https://vue.new/? also i don't think refresh is needed? |
Similar issue. I'm using script setup and the props of the rendered content component don't update. vue-tippy 6.4.1 const { setProps, refresh, refreshContent } = useTippy(tooltipRef, {
content: h(TippyContent, { value: props.value, allowHTML: props.allowHTML }),
interactive: props.interactive,
allowHTML: props.allowHTML,
})
watch(
() => props.value,
() => {
refresh() // Doesn't work
refreshContent() // Doesn't work
setProps({ content: h(TippyContent, { value: props.value, allowHTML: props.allowHTML }) }) // Doesn't work
},
) EDIT: rendering content with useTippy(tooltipRef, {
content: computed(() => {
return h(TippyContent, { value: props.value, allowHTML: props.allowHTML })
}),
interactive: props.interactive,
allowHTML: props.allowHTML,
}) |
Currently, if you open a component with a text field inside useTippy, enter a value there, then close and re-open it, the field will remain filled. How can I get rid of keep-alive?
Not work:
The text was updated successfully, but these errors were encountered: