naive-ui icon indicating copy to clipboard operation
naive-ui copied to clipboard

Cascader , multiple is true, and discard all selections,@update:value handleUpdateValue callback with [null] as the value,not []

Open daselang opened this issue 1 year ago • 1 comments

Describe the bug

as the Title, For Cascader ,:multiple"true", select multi options and then discard all sections, @update:value handleUpdateValue callback with [null] as first param value,not [], I think when 0 options is selected, it should be [] empty array.

Steps to reproduce

1.:multiple"true" 2.select multi options 3.discard all selections 4.watch the on-update:value event 5.retrieve [null] but not the []

Link to minimal reproduction

no link

System Info

System:
    OS: macOS 14.5
    CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
    Memory: 44.13 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.2.0 - /usr/local/bin/node
    Yarn: 4.1.1 - /usr/local/bin/yarn
    npm: 10.8.0 - /usr/local/bin/npm
    Watchman: 2024.05.06.00 - /usr/local/bin/watchman
  Browsers:
    Chrome: 127.0.6533.100
    Safari: 17.5
  npmPackages:
    naive-ui: ^2.38.1 => 2.38.1
    vue: ^3.2.41 => 3.4.21

Used Package Manager

npm

Validations

daselang avatar Aug 09 '24 03:08 daselang

hey, please create a minimal reproduction so we can help. just a codesandbox or a github repo

OrbisK avatar Aug 13 '24 08:08 OrbisK

This issue does not have any recent activity. If you are still experiencing similar problems, open a new error, including a minimal copy of the problem

jahnli avatar Sep 24 '24 01:09 jahnli