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

refresh doesn't respect child's innerhtml=null #792

Open
yakovyarmo opened this issue Jan 23, 2023 · 0 comments
Open

refresh doesn't respect child's innerhtml=null #792

yakovyarmo opened this issue Jan 23, 2023 · 0 comments

Comments

@yakovyarmo
Copy link

I'm using nuxt 2

I've noticed that when calling the meta refresh on the client side, it doesn't respect innerhtml=null in the child component.
After further investigation I found that the problem lays in the following line:

source.splice(sourceIndex, 1)

It happens since you are removing it from the source and then in the next refresh it doesn't exists anymore.
My solution for now was to override the splice method so it won't do anything.

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

1 participant