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

已关闭
#14,147 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

这个 Issue 还没有评估数据。

描述

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.
主要语言
TypeScript
星标
1.8k
派生
291
平均合并
3 天 6 小时
30 天内合并 PR
57

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

UI5/webcomponents 的其他 Issue

查看 UI5/webcomponents 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。