@xh/hoist 47.1.0 → 47.1.1
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 +3 -2
- package/cmp/clock/Clock.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## v47.1.
|
|
3
|
+
## v47.1.1 - 2022-03-26
|
|
4
4
|
|
|
5
5
|
### 🎁 New Features
|
|
6
6
|
|
|
@@ -17,13 +17,14 @@
|
|
|
17
17
|
* Fixed column auto-sizing when `headerName` is/returns an element.
|
|
18
18
|
* Fixed bug where subforms were not properly registering as dirty.
|
|
19
19
|
* Fixed an issue where `Select` inputs would commit `null` whilst clearing the text input.
|
|
20
|
+
* Fixed `Clock` component bug introduced in v47 (configured timezone was not respected).
|
|
20
21
|
|
|
21
22
|
### 📚 Libraries
|
|
22
23
|
|
|
23
24
|
* @blueprintjs/core `3.53 -> 3.54`
|
|
24
25
|
* @blueprintjs/datetime `3.23 -> 3.24`
|
|
25
26
|
|
|
26
|
-
[Commit Log](https://github.com/xh/hoist-react/compare/v47.0.1...v47.1.
|
|
27
|
+
[Commit Log](https://github.com/xh/hoist-react/compare/v47.0.1...v47.1.1)
|
|
27
28
|
|
|
28
29
|
## v47.0.1 - 2022-03-06
|
|
29
30
|
|
package/cmp/clock/Clock.js
CHANGED
|
@@ -86,7 +86,7 @@ class LocalModel extends HoistModel {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
async loadTimezoneOffsetAsync() {
|
|
89
|
-
const {timezone} = this;
|
|
89
|
+
const {timezone} = this.componentProps;
|
|
90
90
|
|
|
91
91
|
try {
|
|
92
92
|
if (!timezone) {
|
|
@@ -95,10 +95,11 @@ class LocalModel extends HoistModel {
|
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
const offsetResp = await XH.fetchJson({
|
|
99
99
|
url: 'xh/getTimeZoneOffset',
|
|
100
100
|
params: {timeZoneId: timezone}
|
|
101
101
|
});
|
|
102
|
+
this.offset = offsetResp.offset;
|
|
102
103
|
this.offsetException = null;
|
|
103
104
|
} catch (e) {
|
|
104
105
|
XH.handleException(e, {showAlert: false, logOnServer: false});
|