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

Unnecessary re-render when using expression #105

Closed
majestic2k opened this issue Jan 7, 2020 · 0 comments · Fixed by #106
Closed

Unnecessary re-render when using expression #105

majestic2k opened this issue Jan 7, 2020 · 0 comments · Fixed by #106

Comments

@majestic2k
Copy link
Contributor

Steps to reproduce: https://codepen.io/majesticcpan/pen/wvByzad

When using object literal notation in v-translate directive, like
<span v-translate="{name: 'John'}">Hello %{name}</span>
every re-render triggered by some reactive changes causes innerHTML re-rendering.
This creates a problem with text selection for example.

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

Successfully merging a pull request may close this issue.

1 participant