Skip to content

Commit

Permalink
[OBSDEF-35531] Added data-qa attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
netraja-chavan committed Apr 16, 2024
1 parent 1e380c0 commit a0d85d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/datagrid/DataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ export class DataGrid extends React.PureComponent<DataGridProps, DataGridState>
} else if (pageSize && maxCustomPageSize && pageSize > maxCustomPageSize) {
if (this.customPageSizeRef.current) {
this.customPageSizeRef.current.value = maxCustomPageSize.toString();
this.getPage(1, parseInt(this.customPageSizeRef.current.value));
this.getPage(DEFAULT_CURRENT_PAGE_NUMBER, parseInt(this.customPageSizeRef.current.value));
}
}
};
Expand Down Expand Up @@ -1504,6 +1504,7 @@ export class DataGrid extends React.PureComponent<DataGridProps, DataGridState>
size={4}
defaultValue=""
type="text"
data-qa="dataqa_datagrid_custom_input"
ref={this.customPageSizeRef}
style={Styles.PAGINATION_CUSTOM_INPUT}
onBlur={this.handleCustomPageSizeChangeOnBlur}
Expand Down

0 comments on commit a0d85d3

Please sign in to comment.