carbon-design-system / ibm-products

A Carbon-powered React component library for IBM Products
https://carbon-for-ibm-products.netlify.app/
Apache License 2.0
88 stars 126 forks source link

[DataSpreadsheet]: When drag/drop of columns, no callback can be detected for dev #5620

Open AustinGitHub opened 1 week ago

AustinGitHub commented 1 week ago

Package

Carbon for IBM Products

Description

When I drag/drop a column I see that onDataUpdate is not getting this response so how is used supposed to trigger the update state?

I set up callback here in local env, data update does not get callback happening. Dev is not able to know that data got changed

https://github.com/carbon-design-system/ibm-products/assets/10100397/a05f086f-16ab-4e0d-bb45-5a3cc49b9703

Component(s) impacted

Data Spreadsheets

Browser

No response

@carbon/ibm-products (previously @carbon/ibm-cloud-cognitive) version

2.44.0-rc.1

Suggested Severity

None

Product/offering

IBM DataStage

CodeSandbox or Stackblitz example

N/A

Steps to reproduce the issue (if applicable)

Since you need specific call back function implemented to see it, not able to share demo. I put video above though of this callback not working

Release date (if applicable)

No response

Code of Conduct

AustinGitHub commented 1 week ago

I am looking into fixing this. This is necessary for devs to be able to detect this change

AustinGitHub commented 1 week ago

Ok, I see why it was like this when implemented, but on DataStage implementation, the reason we need this is because we are keeping track of the headers inside of an array so we need to know if the headers change order we need to update on our end for mapping purposes since user can manipulate the column metadata at any point so if the column headers are out of order then we can't accommodate user changes accordingly