ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[MultiComboBox]:Count is not displaying for selected items

Open roshnijalan97new opened this issue 1 year ago • 4 comments

Bug Description

when the user selects multiple items from the drop down and the click outside the combo box. It displays the count. Screenshot 2024-03-21 at 2 10 36 PM If the user again click on the number and unselects some items Screenshot 2024-03-21 at 2 12 23 PM Then it is observed that the count is not displayed. Screenshot 2024-03-21 at 2 12 23 PM

Affected Component

MultiComboBox

Expected Behaviour

Count should always be displayed for the selected items in the combo box.

Isolated Example

No response

Steps to Reproduce

  1. Go to https://codesandbox.io/p/sandbox/still-snow-65xrvf?file=%2Fsrc%2FApp.tsx
  2. when the user selects multiple items from the drop down and the click outside the combo box. It displays the count.
  3. If the user again click on the number and unselects some items
  4. Then it is observed that the count is not displayed.

Log Output, Stack Trace or Screenshots

No response

Priority

Medium

UI5 Web Components Version

1.9.3

Browser

Chrome

Operating System

Mac Os

Additional Context

No response

Organization

No response

Declaration

  • [X] I’m not disclosing any internal or sensitive information.

roshnijalan97new avatar Mar 21 '24 08:03 roshnijalan97new

Hi @roshnijalan97new,

Clicking outside the multi combo box, always displays the count, I tried with selection and deselection. Can you give more details how to reproduce it? Do you expect the count to be displayed before clicking outside of the multi combo box?

Can you reproduce it in the latest version: latest sample with multi combo box?

Best regards, Petya

petyabegovska avatar Mar 25 '24 07:03 petyabegovska

Hi @petyabegovska, The steps are as follows:

  1. select as many elements as you can, ex: selected 7 elements Screenshot 2024-04-01 at 11 24 01 AM
  2. Click outside the combo box. it should the no of elements as expected. Screenshot 2024-04-01 at 11 24 13 AM 3)Now, click on 6more. the drop down will be show like below image, showing only 7 items which we selected. Screenshot 2024-04-01 at 11 24 25 AM
  3. Now, deselect as few items from the list. Screenshot 2024-04-01 at 11 24 32 AM
  4. Click outside the combo box. The display of items is not as expected Screenshot 2024-04-01 at 11 24 37 AM

roshnijalan97new avatar Apr 01 '24 05:04 roshnijalan97new

Hello @SAP/ui5-webcomponents-topic-rl,

this issue is reproducible in the following snippet in the playground.

  1. Select 4 items
  2. Click outside the dropdown
  3. Click exactly on the 3 more link/label
  4. Deselect an item
  5. Click outside the dropdown

Result "N more" label is not shown anymore

Could you please have a look?

Thanks, Dobrin

dobrinyonkov avatar Apr 01 '24 06:04 dobrinyonkov

Hello,

The issue is fixed in version 2.0 with the following change - #8484. However we need to prepare a separate downport for 1.24 as the codebase differs a lot by the introduction of the popover API.

Regards, Ivaylo

ivoplashkov avatar May 09 '24 08:05 ivoplashkov