Skip to content
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

Does not trigger re-render on props change #12

Open
yuichkun opened this issue Mar 23, 2021 · 2 comments
Open

Does not trigger re-render on props change #12

yuichkun opened this issue Mar 23, 2021 · 2 comments

Comments

@yuichkun
Copy link

TL;DR

Hi, thank you very much for this awesome library!

Although this works with many cases, I found a situation where v-linkified component does not re-render after changes via props, data, computed, etc.

Reproduction

Demo:
https://vue-linkify-not-working-demo.vercel.app/

Source Code:
https://github.com/yuichkun/repro-vue-linkify-bug

Possible Fix?

I guess this bug derives from the fact that this library gets text values from el.innerHTML, so if there's a way to get text from vNode, it could avoid referencing the old value??

I'm not too familiar with Vue.js but if @phanan is busy, I'm up for trying making up a fix PR myself :)

@yuichkun yuichkun changed the title Does not work with values that changes afterwards Does not trigger re-render on props change Mar 23, 2021
@phanan
Copy link
Owner

phanan commented Mar 23, 2021 via email

@yuichkun
Copy link
Author

@phanan
Thank you!
Although I noticed that I have a slight misunderstanding in the first place, I did create a PR, would you mind taking a look when you are free?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants