-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(DataGrid): disable save button on customise column #6026
fix(DataGrid): disable save button on customise column #6026
Conversation
✅ Deploy Preview for carbon-for-ibm-products ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
...oducts/src/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js
Outdated
Show resolved
Hide resolved
...oducts/src/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. just one additional request. please include a unit test to verify the functionality. thanks!
@@ -1981,6 +1984,41 @@ describe(componentName, () => { | |||
); | |||
}); | |||
}); | |||
it('Customizing Columns disable save button when un-select all columns', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not necessarily for this PR, but it could be good to take a look at our conventions and naming for the base component and extensions. Could be good to come up with some better organization for the extensions themselves.
2b32f0f
Closes #5843
If all the columns are unchecked, Save button should not be enabled in Datagrid customise columns
How did you test and verify your work?
storybook