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

keep-alive component's include prop cannot trim blank space if there's any #11881

Open
JerryYuanJ opened this issue Jan 21, 2021 · 0 comments · May be fixed by #11882
Open

keep-alive component's include prop cannot trim blank space if there's any #11881

JerryYuanJ opened this issue Jan 21, 2021 · 0 comments · May be fixed by #11882

Comments

@JerryYuanJ
Copy link

JerryYuanJ commented Jan 21, 2021

Version

2.6.11

Steps to reproduce

following code makes a simple example:

<keep-alive include="a,    b,c">
    <router-view> </router-view>
</keep-alive>

What is expected?

component a, b, c should all be cached.

What is actually happening?

a and c are fine except b with blank is failed to be kept alive.


When do the matching, should consider this situation because some devs like to add a space between words or formatted by some tools.

JerryYuanJ pushed a commit to JerryYuanJ/vue that referenced this issue Jan 21, 2021
@JerryYuanJ JerryYuanJ changed the title keep-alive component's include props cannot trim blank space if there's any keep-alive component's include prop cannot trim blank space if there's any Jan 22, 2021
@posva posva linked a pull request Jun 27, 2021 that will close this issue
13 tasks
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