Our state of the art Gantt chart


Post by MauriceLapre »

Hi,

I've got a Combo with a displayvaluerenderer. I made it editable, but that's not working correctly. When you start typing in the Combo, there are not typed characters showing. It does seem to do a search, but only on the first character.

This can be reproduced in Task editor customization demo:

class ColorField extends Combo {
    static get type() {
        return 'colorfield';
    }

static get defaultConfig() {
    return {
        clearable : true,
        items     : baseColors,
displayValueRenderer    : (value) => {                            
return value && value.id + '( this is a color)';
}, picker : { cls : 'b-color-picker-container', itemCls : 'b-color-picker-item', itemTpl : item => `<div style="background-color:${item.id}"></div>` } }; } }

Is the combination editable Combo + displayvaluerenderer not possible?

Thanks!


Post by Animal »

This is a bug in Combo. During type-to-filter, it should not update the input field.

When you select an item it should overwrite your input with something like "red( this is a color)"

I have reproduced this, and I see how to fix it. This will be fixed in the next release.

Ticket: https://github.com/bryntum/bryntum-suite/issues/1393


Post Reply