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

Chiusa
#14,147 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.
Lingua principale
TypeScript
Stelle
1.8k
Fork
290
Merge medio
3g 6h
PR unite (30g)
57

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di UI5/webcomponents

Tutte le issue di UI5/webcomponents

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.