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
If you have a click handler on a row, the row object a list of columns are returned by the Bootgrid click handler. That's all good.
If you then add a data-identifier parameter to some field, to use as the row ID.... the row is then returned from that same click handler as null. The reason is this pair of lines...
compares for type and value with === against... the objects in the array. And that danged ID is plain old integer 4 in there. So it fails the comparision, as 4 !== "4".
I'm not quite sure what this is supposed to be doing, but a quick hack fix is to relax the test to make it an == check. That seems unsatisfying.
The text was updated successfully, but these errors were encountered:
If you have a click handler on a row, the row object a list of columns are returned by the Bootgrid click handler. That's all good.
If you then add a data-identifier parameter to some field, to use as the row ID.... the row is then returned from that same click handler as null. The reason is this pair of lines...
This one sets my ID up to be a string, say "4". The subsequent line...
compares for type and value with === against... the objects in the array. And that danged ID is plain old integer 4 in there. So it fails the comparision, as 4 !== "4".
I'm not quite sure what this is supposed to be doing, but a quick hack fix is to relax the test to make it an == check. That seems unsatisfying.
The text was updated successfully, but these errors were encountered: