construct-ui icon indicating copy to clipboard operation
construct-ui copied to clipboard

itemListRender attribute on SelectList component has no effect

Open raykyri opened this issue 4 years ago • 2 comments

It is supposed to be used to render the SelectList's .cui-list, but never gets called when it is specified.

(Originally reported by @gdjohnson, and I was able to replicate.)

raykyri avatar Jun 02 '20 23:06 raykyri

Looks like I documented the itemListRender attribute but... completely forgot to implement the logic haha. I'll need to take a better look to properly account for list keyboard interactions.

vrimar avatar Jun 25 '20 03:06 vrimar

edit: Nevermind, I used m.render, changed to m.mount and now all is well :-)

~~Can it be that this is the reason I cannot get the multi selectlist to work? I do not use typescript and have therefore build and included the min.js and although passing items to render, they never get drawn when clicking on the selectlist (which does show up) I tried to replicate the example by making a class for it to include within my application.~~

Here is my component code gist

jdiderik avatar Aug 15 '20 06:08 jdiderik