Premium support for our pure JavaScript UI components


Post by Phil234234234234 »

Hello

Recently we noticed a problem with our combo-box dropdown. Essentially, when we manually cleared out the value after searching the combo-box, the dropdown would not go back to showing all of the combobox items - but rather the results from the last search. The attached picture shows the problem - in it, you can see we're shown the 'Fanta' option in the dropdown, although theres no longer a 'f' in the search bar, and theres other items in the combobox.

To replicate this - you can go to the codepen example in https://www.bryntum.com/docs/grid/api/Core/widget/Combo and you can change the existing drink combobox to look like

// combo with string items
new Combo({
    items    : ['Fanta', 'Loranga', 'Jaffa', 'Zingo', 'Orangina'],
    label    : 'Items as strings',
    keyStrokeFilterDelay: 300,
    appendTo : document.body,
    style    : { marginRight : '.5em' }
});

As you can see - the only difference is adding a keyStrokeFilterDelay of 300. Then just type 'fan' into the combo-box. Observe how only Fanta appears. Then delete all the letters by repeatedly hitting the delete key. Observe how after that - only Fanta appears again as an option. This seems incorrect - you would expect all the options to reappear after the search text has been manually cleared.

Would someone be able to look at this?

Thanks!

Attachments
Screenshot 2022-09-29 at 17.54.29.png
Screenshot 2022-09-29 at 17.54.29.png (180.79 KiB) Viewed 121 times

Post by marcio »

Hey Phil234234234234,

I couldn't reproduce the example you detailed in your post. I tried to follow the steps you mentioned, but the Combo didn't behave the way that you described. Check the video using the codepen link https://codepen.io/pen?__resourceRoot=https%3A%2F%2Fwww.bryntum.com%2Fdocs%2Fgrid%2Fapi%2FCore%2Fwidget%2FCombo&editors=001

Am I missing some step??

Attachments
Bryntum Live Demo - 29 September 2022.mp4
(102.37 KiB) Downloaded 21 times

Best regards,
Márcio


Post by Phil234234234234 »

Hi marcio,

Thanks for the response! I think you have to remove the text quickly to reproduce the bug. I've attached a video showing how it works when you delete the text slowly, and then how the bug appears when you delete the text quickly.

Thanks!

Attachments
Screen Recording 2022-09-30 at 09.09.11.mov
(2.49 MiB) Downloaded 21 times

Post by mats »


Post Reply