@iobroker/gui-components 10.3.11 → 10.3.13
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/README.md +7 -1
- package/build/Components/ObjectBrowser/ObjectBrowserClass.js +8 -1
- package/build/Components/ObjectBrowser/ObjectBrowserClass.js.map +1 -1
- package/build/Components/ObjectBrowser/utils.js +8 -2
- package/build/Components/ObjectBrowser/utils.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ npm create vite@latest src -- --template react-ts
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@emotion/react": "^11.14.0",
|
|
38
38
|
"@emotion/styled": "^11.14.1",
|
|
39
|
-
"@iobroker/gui-components": "^10.3.
|
|
39
|
+
"@iobroker/gui-components": "^10.3.13",
|
|
40
40
|
"@mui/icons-material": "^9.0.1",
|
|
41
41
|
"@mui/material": "^9.0.1",
|
|
42
42
|
"react": "^19.2.5",
|
|
@@ -877,6 +877,12 @@ You can find the migration instructions:
|
|
|
877
877
|
-->
|
|
878
878
|
|
|
879
879
|
## Changelog
|
|
880
|
+
### 10.3.13 (2026-10-23)
|
|
881
|
+
- (@GermanBluefox) Fixed: the object browser showed an object twice and copied its row while scrolling, if a sibling ID began with the same text followed by a space (e.g., `BLE_Steckdose` and `BLE_Steckdose 2`): https://github.com/ioBroker/ioBroker.admin/issues/3693
|
|
882
|
+
|
|
883
|
+
### 10.3.12 (2026-10-18)
|
|
884
|
+
- (@GermanBluefox) Fixed: the object browser did not scroll to the pre-selected object when its folders were not expanded yet, e.g. the first time an ID of a Blockly block was opened in the dialog: https://github.com/ioBroker/ioBroker.javascript/issues/2410
|
|
885
|
+
|
|
880
886
|
### 10.3.11 (2026-10-14)
|
|
881
887
|
- (@GermanBluefox) Changed: `GenericApp` asks for the system configuration, the instance object and the state of the Sentry plugin at once instead of one after the other, and does not wait for the UUID of the system anymore before `onConnectionReady()` - three round trips less before an app gets its turn, which a remote connection pays most for
|
|
882
888
|
- (@GermanBluefox) Changed: the Sentry SDK (180 KB) is only loaded when the instance really reports errors. It was part of every app before its first frame. Errors of the very first moment of an app are not reported anymore, as they were not before the UUID was read either
|
|
@@ -2640,9 +2640,15 @@ export class ObjectBrowserClass extends Component {
|
|
|
2640
2640
|
* into the middle of the table by scrolling there.
|
|
2641
2641
|
*/
|
|
2642
2642
|
scrollToItem(id) {
|
|
2643
|
-
|
|
2643
|
+
// Another row is wanted now: forget the pre-selected one. The pre-selected row itself stays
|
|
2644
|
+
// pending until it is found - on the first render after loading its parents are not expanded
|
|
2645
|
+
// yet (see `expandAllSelected`), so it is not in `flatRows`, and `componentDidUpdate` tries again
|
|
2646
|
+
if (this.selectFirst !== id) {
|
|
2647
|
+
this.selectFirst = '';
|
|
2648
|
+
}
|
|
2644
2649
|
const node = window.document.getElementById(id);
|
|
2645
2650
|
if (node) {
|
|
2651
|
+
this.selectFirst = '';
|
|
2646
2652
|
node.scrollIntoView({
|
|
2647
2653
|
behavior: 'auto',
|
|
2648
2654
|
block: 'center',
|
|
@@ -2655,6 +2661,7 @@ export class ObjectBrowserClass extends Component {
|
|
|
2655
2661
|
if (!container || index === -1) {
|
|
2656
2662
|
return;
|
|
2657
2663
|
}
|
|
2664
|
+
this.selectFirst = '';
|
|
2658
2665
|
const middle = this.rowOffsets[index] - Math.max(0, (this.viewportHeight - ROW_HEIGHT) / 2);
|
|
2659
2666
|
container.scrollTop = Math.max(0, middle);
|
|
2660
2667
|
// the scroll event moves the window, and the row is rendered with the next frame
|