You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
onCustomRender should only be called once on initial row creation
Observed Behavior
I tried using the onCustomRender function in order to use an AsyncDropdown I created myself which loads it's options async. Everything works perfect on the initial loading of the modal window. I can see my dropdown load and then the options appear correctly. However, as soon as I create another row, I get this really weird behavior where the loading gif starts playing on previously created row (instead of the new one) and then the newly created row gets the value of the previously created row, for the custom field.
To make sure it wasn't my component, I replaced it with the provided example which uses a simple input, and while I don't get the weird loading behavior (which is normal cause it's a simple input) I do get the newly created row with the same value in the custom field as the previously created row, which isn't normal.
When putting a breakpoint in the onCustomRender method, I didn't figure out the pattern yet but it does get called a whole lot of times. When adding a new row, it gets called for all the previous rows (not sure if normal), then it gets called for the newly created row, then it gets called 2-3 times more which sounds odd.
Steps to Reproduce
Use the provided example and add new rows you will see what happens.
Category
Version
1.13.1
Expected / Desired Behavior / Question
onCustomRender should only be called once on initial row creation
Observed Behavior
I tried using the onCustomRender function in order to use an AsyncDropdown I created myself which loads it's options async. Everything works perfect on the initial loading of the modal window. I can see my dropdown load and then the options appear correctly. However, as soon as I create another row, I get this really weird behavior where the loading gif starts playing on previously created row (instead of the new one) and then the newly created row gets the value of the previously created row, for the custom field.
To make sure it wasn't my component, I replaced it with the provided example which uses a simple input, and while I don't get the weird loading behavior (which is normal cause it's a simple input) I do get the newly created row with the same value in the custom field as the previously created row, which isn't normal.
When putting a breakpoint in the onCustomRender method, I didn't figure out the pattern yet but it does get called a whole lot of times. When adding a new row, it gets called for all the previous rows (not sure if normal), then it gets called for the newly created row, then it gets called 2-3 times more which sounds odd.
Steps to Reproduce
Use the provided example and add new rows you will see what happens.
Thanks!
The text was updated successfully, but these errors were encountered: