Cascader valuePath does not clear/reset on clearValue()/ reestValue()

  1. My goal: I want to set new value to the cascader programmatically.
  2. Issue: On clearValue() or resetValue(), the value resets but the valuePath remains .

I also use the valuePath in my code as a reference to the selected value.

This can be reproduced.

1 Like

Hi @rlmnl, I was able to reproduce this and confirm this is a bug. I've sent in a feature request but I personally haven't found a workaround for this. It seems to me that the valuePath is only updated on a 'change' event (clicking through the component), which clearValue/resetValue doesn't trigger despite changing the value. I'm not familiar with a way to programmatically force a change event either.

I will keep investigating but that's all I can say for now.