epam / UUI

React-based components and accelerators library built by EPAM Systems.
https://uui.epam.com/
MIT License
161 stars 61 forks source link

[PickerInput]: prop emptyValue doesn't work correctly with null value for selectionMode multi #2283

Closed MSt1ch closed 3 weeks ago

MSt1ch commented 1 month ago

Prerequisites (optional)

This section may be deleted

Please answer the following questions for yourself before submitting an issue.

Steps to Reproduce

  1. Select some values
  2. Then clear all
  3. The empty value is still empty Array ([])

Actual result

What is the current behavior?

https://codesandbox.io/p/sandbox/uui-forked-j5tcv5?file=%2FExample.tsx%3A16%2C27

Expected result

I'm waiting null for empty select.

Environment

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

NatalliaAlieva commented 3 weeks ago

Released in 5.8.0 ver.