@nordicsemiconductor/pc-nrfconnect-shared 162.0.0 → 163.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Changelog.md
CHANGED
|
@@ -7,6 +7,12 @@ This project does _not_ adhere to
|
|
|
7
7
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html) but contrary to it
|
|
8
8
|
every new version is a new major version.
|
|
9
9
|
|
|
10
|
+
## 163.0.0 - 2024-03-05
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Fixed issue with `Group` remaining expanded in some cases
|
|
15
|
+
|
|
10
16
|
## 162.0.0 - 2024-03-05
|
|
11
17
|
|
|
12
18
|
### Changed
|
package/package.json
CHANGED
package/src/Group/Group.tsx
CHANGED
|
@@ -45,8 +45,9 @@ const collapseSection = (element: HTMLDivElement) => {
|
|
|
45
45
|
|
|
46
46
|
const expandSection = (element: HTMLDivElement) => {
|
|
47
47
|
const sectionHeight = element.scrollHeight;
|
|
48
|
+
const clientHeight = element.clientHeight;
|
|
48
49
|
|
|
49
|
-
if (sectionHeight ===
|
|
50
|
+
if (sectionHeight === clientHeight) return;
|
|
50
51
|
|
|
51
52
|
element.style.height = `${sectionHeight}px`;
|
|
52
53
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../src/Group/Group.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA2B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../src/Group/Group.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAmEhD,eAAO,MAAM,KAAK;;aAYL,MAAM;;;eAGJ,MAAM,SAAS;;;;iCAIE,OAAO,KAAK,IAAI;iBAmF/C,CAAC"}
|