Subscribe on changes!

include and exclude of keep alive component props are string should support spaces around commas

avatar
May 6th 2022

Version

3.2.33

Reproduction link

sfc.vuejs.org/

Steps to reproduce

  1. Switch to Bar component
  2. input something
  3. Switch to Foo component
  4. Switch to Bar component and the value of the input is missing

What is expected?

After input, switch to foo, and then switch to bar component. The value in the input should be retained

What is actually happening?

After input, switch to foo, and then switch to bar component. The value in the input is missing

avatar
Jun 14th 2022

You need to bind v-model to the input, and the input value can be retained after switching