Skip to content
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: enable first column resize #43

Merged
merged 1 commit into from
May 6, 2024
Merged

Conversation

artemmufazalov
Copy link
Contributor

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@@ -321,7 +321,7 @@ class TableHead<T> extends React.Component<TableHeadProps<T>> {
};
};
_getRenderedColumn = (index?: number) => {
if (index) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously this condition was false for the first column, so resize for this column didn't work

@@ -9,13 +9,12 @@ export type GetSavedColumnWidthByName = () => ColumnWidthByName;
export function updateColumnsWidth<T>(
columns: Column<T>[],
columnsWidthSetup: ColumnWidthByName,
defaultResizeable = false,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unneeded parameter

@artemmufazalov artemmufazalov marked this pull request as ready for review May 6, 2024 13:47
@artemmufazalov artemmufazalov merged commit 659541d into main May 6, 2024
3 checks passed
@artemmufazalov artemmufazalov deleted the fix-first-column-resize branch May 6, 2024 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants