Subscribe on changes!

Change in select does not reset previous if statements

avatar
Jul 10th 2022

Vue version

3.2.37

Link to minimal reproduction

https://formkit.link/abcb3b13f8a629e184a0b42da942b95f

Steps to reproduce

Select: Enlace a contenido interno, if Radio: Select any of the options

Re Select another option: Enlace a contenido externo

What is expected?

Radio Options to go away since they do not meet current filter

What is actually happening?

You get a warning. The radio options remain

Unhandled error during execution of watcher callback

System Info

System:
    OS: macOS 11.5.2
    CPU: (8) arm64 Apple M1
    Memory: 103.81 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node
    npm: 8.11.0 - ~/.nvm/versions/node/v16.15.1/bin/npm
  Browsers:
    Chrome: 103.0.5060.114
    Safari: 14.1.2
  npmPackages:
    vue: ^3.2.29 => 3.2.31

Any additional comments?

I think I know what is going on. The radio options are checking an object property of an object property that does not exit. const a={} if a.myprop works but if a.myprop.myotherthing will give you an error. Could it be? so it would need to check wether the property exist before doing an if? I don't know. Thanks

avatar
Jul 10th 2022

Please open an issue with FormKit.