Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

[Combobox] Resetting to value in some occasions #1427

Closed
obarcelonap opened this issue Aug 4, 2020 · 2 comments · Fixed by #1445 or #1605
Closed

[Combobox] Resetting to value in some occasions #1427

obarcelonap opened this issue Aug 4, 2020 · 2 comments · Fixed by #1445 or #1605
Assignees
Labels
bug A broken behaviour that was working previously

Comments

@obarcelonap
Copy link
Contributor

obarcelonap commented Aug 4, 2020

Bug Report

Current Behavior

When a value in the combobox has been selected, after deleting the value having pressed the delete key it some occasions it resets the value to other one, hidding the autocompletion.

Expected Behavior

I'd expect the value is selected (bold font) but still the autocompletion panel is opened and showing more options (if there's more)

Possible Solution

Might be related to debouncing and performing async operations for retrieving the different options considering the input.

Steps to Reproduce

Reproducible here: https://stackblitz.com/edit/dtcombobox
Screen recording: Screen Recording 2020-08-04 at 10.10.45.zip

  1. select a value
  2. delete the value keeping the delete key pressed
  3. sometimes the value gets reset
@obarcelonap obarcelonap added the bug A broken behaviour that was working previously label Aug 4, 2020
@tomheller tomheller changed the title DtCombobox resetting to value in some occasions [Combobox] Resetting to value in some occasions Aug 5, 2020
@tomheller
Copy link
Collaborator

Thank you for reporting this one. this seems like a really weird behaviour.

@lukett89
Copy link
Contributor

lukett89 commented Sep 8, 2020

Hi guys, the same reset issue can still be reproduced by following these steps:

  1. Open combobox demos example (default selection: Value 1)
  2. Click on Value 1 option
  3. Reset event is sent

OR

  1. Show option suggestions
  2. Move the focus out from the input without selecting any option
  3. Reset event is sent

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug A broken behaviour that was working previously
Projects
None yet
5 participants