Unplanned
Last Updated: 19 Jul 2024 08:23 by Liviu Ciocoiu
Liviu Ciocoiu
Created on: 19 Jul 2024 08:23
Category: ComboBox
Type: Bug Report
1
When AllowCustom is true and the typed value partially matches an item in the list, OnChange overrides the custom value and selects the matching item from the list

The problematic behavior appears in this specific scenario:

  • AllowCustom="true".
  • The input partially matches an item in the list.
  • The user presses Enter

In this case, the custom typed value is lost and the component value is the first item in the list matching the input. Thus, the user cannot set their desired custom value.

Reproduction with steps listed inside: https://blazorrepl.telerik.com/GokVlXEW12KGZ36F15.

===

ADMIN EDIT

===

A possible option for the time being:

  • Enable filtering.
  • Use the OnRead event to get the input value from the filter descriptors and save it.
  • In the OnChange event that is triggered on Enter press, set the saved input value to the component.

Here is a basic sample: https://blazorrepl.telerik.com/wourlNOC51FRcNAX54.

0 comments