Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
working column resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
sdadn committed Oct 18, 2023
1 parent 74fb315 commit 5868be5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/terra-data-grid/src/DataGrid.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ const DataGrid = injectIntl((props) => {
columnResizeIncrement={columnResizeIncrement}
onColumnSelect={handleColumnSelect}
onResizeMouseDown={onResizeMouseDown}
onResizeHandleChange={onColumnResize ? onResizeHandleChange: null}
onResizeHandleChange={onResizeHandleChange}
/>
<tbody>
{rows.map((row, index) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const propTypes = {
*/
isActive: PropTypes.bool,
/**

Check failure on line 40 in packages/terra-data-grid/src/subcomponents/ColumnResizeHandle.jsx

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 2 spaces but found 4
* Callback to update isActive for parent.
* Handler function to update isActive for parent.
*/
setIsActive: PropTypes.func,
/**
Expand All @@ -61,12 +61,6 @@ const propTypes = {
* Function that is called when the the keyboard is used to adjust the column size.
*/
onResizeHandleChange: PropTypes.func,

/**
* Function that is called when the the keyboard is used to adjust the column size.
*/
onResizeHandleBlur: PropTypes.func,

/**
* @private
* The intl object containing translations. This is retrieved from the context automatically by injectIntl.
Expand All @@ -89,7 +83,6 @@ const ColumnResizeHandle = (props) => {
isActive,
maximumWidth,
minimumWidth,
onResizeHandleBlur,
onResizeHandleChange,
onResizeMouseDown,
onResizeMouseUp,
Expand Down

0 comments on commit 5868be5

Please sign in to comment.