feat(combobox): add data:string slot

This commit is contained in:
Paul Chavard 2023-10-13 16:05:26 +02:00
parent 66f94722fb
commit f0168d1470

View file

@ -296,6 +296,9 @@ export class ComboboxUI implements EventListenerObject {
case 'label':
input.value = this.#input.value;
break;
case 'data:string':
input.value = data ? String(data) : '';
break;
case 'data':
input.value = data ? JSON.stringify(data) : '';
break;