[MultiComboBox]: Dropdown arrow does not open recreated MultiComboBox with selected tokens

Đã đóng
#14,147 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

author action bug Stale
Bug Description

ui5-multi-combobox does not reliably open when its built-in dropdown arrow is clicked after the component is removed and recreated with selected items.

Affected version: @ui5/webcomponents 2.26.0.

Affected Component

ui5-multi-combobox

Expected Behaviour

Clicking the dropdown arrow should focus and open the options picker, including after component recreation and when selected tokens are present.

Isolated Example

No response

Steps to Reproduce
  1. Render a ui5-multi-combobox with at least one selected ui5-mcb-item.
  2. Update application state so the MultiComboBox is removed and rendered again while preserving the selected item.
  3. Click the built-in dropdown-arrow icon on the recreated MultiComboBox.

Actual: the options picker does not open.

Expected: the options picker opens and the input receives focus.

Log Output, Stack Trace or Screenshots

No console error is produced.

Relevant source difference:

// MultiComboBox
_onIconMousedown() {
  this._iconPressed = true;
}

// ComboBox
_arrowMouseDown(e) {
  e.preventDefault();
  this.inner.focus();
}

### Priority

Medium

### UI5 Web Components Version

2.26.0

### Browser

Chrome

### Operating System

macOS 27.0.1 (Build 26A434)

### Additional Context

Tested with @ui5/webcomponents 2.26.0 in Google Chrome on macOS.

No application-specific screenshots, recordings, URLs, or internal data are attached.


### Organization

_No response_

### Declaration

- [x] I’m not disclosing any internal or sensitive information.
Ngôn ngữ chính
TypeScript
Star
1.8k
Fork
290
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
50

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của UI5/webcomponents

Tất cả issue của UI5/webcomponents

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.