ListItem not working #1221
-
Hello, Do I need something in the App.tsx/RootComponent? I have also experimented with tying in a model to the Component with model={sampleModel} and it does add the ListItem, however, clicking the + button still doesn't append a new item. Is there a way to add an event listener or some kind of debugging to see if there is an error thrown? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Hey @manchuwook! There are a couple of things here, so let me answer them one by one:
(I also let myself update your first post instead of citing it in the answer.) |
Beta Was this translation helpful? Give feedback.
-
I'm still not able to get new list items to add, but I did notice something about
|
Beta Was this translation helpful? Give feedback.
-
Here is my reproduction of the issue: https://rli-sage-player-api-demo-v1.pages.dev/page-2 |
Beta Was this translation helpful? Give feedback.
-
After much tinkering, it had to do with several problems with my setup
|
Beta Was this translation helpful? Give feedback.
Hey @manchuwook! There are a couple of things here, so let me answer them one by one:
ListAddField
renders a white icon on a white background. I'm 100% sure it wasn't the case before, and maybe it changed in some alpha version (we're still on alpha 3). A quick fix is adding a background or text color to thebadge rounded-pill float-end
in there.model
on the form lets you control it from the outside.AutoForm
manages its state by itself, but you can manage it anyway; other forms require state m…