Skip to content

Commit 78acd98

Browse files
authored
Bug/#363 on change double trigger (#364)
* Removed onClick from expand row cell * package-lock updated
1 parent 8cfe932 commit 78acd98

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Precise UI Changelog
22

3+
## 2.1.7
4+
5+
- Fix `onChange` double trigger on clicking `AccordionTable` expand icon
6+
37
## 2.1.6
48

59
- Fixed controlled mode on Pagination component

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "precise-ui",
3-
"version": "2.1.6",
3+
"version": "2.1.7",
44
"description": "Precise UI React component library powered by Styled Components.",
55
"keywords": [
66
"react",
@@ -125,4 +125,4 @@
125125
"engines": {
126126
"node": ">=10.0.0"
127127
}
128-
}
128+
}

src/components/AccordionTable/AccordionTableBasic.part.tsx

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

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

309303
const { cellRenderer } = this.props;

0 commit comments

Comments
 (0)