Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 6c1d1e6

Browse files
authored
Fix arrowToggle (#368)
1 parent 5aa434e commit 6c1d1e6

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Precise UI Changelog
22

3+
## 2.1.9
4+
5+
- Fixed `arrowToggle` on `AccordionTable`
6+
37
## 2.1.8
48

59
- Fixed max height dropdown

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "precise-ui",
3-
"version": "2.1.8",
3+
"version": "2.1.9",
44
"description": "Precise UI React component library powered by Styled Components.",
55
"keywords": [
66
"react",

src/components/AccordionTable/AccordionTableBasic.part.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,13 @@ export class AccordionTableBasic<T> extends React.Component<AccordionTableProps<
297297
const { row, data } = e;
298298

299299
if (e.column === 0) {
300-
return <StyledIcon isRotated={hasIndex(this.state.selectedIndex, row)} name="KeyboardArrowRight" />;
300+
return (
301+
<StyledIcon
302+
isRotated={hasIndex(this.state.selectedIndex, row)}
303+
name="KeyboardArrowRight"
304+
onClick={() => data && this.props.arrowToggle && this.handleClick(row, data)}
305+
/>
306+
);
301307
}
302308

303309
const { cellRenderer } = this.props;

0 commit comments

Comments
 (0)