@iobroker/adapter-react-v5 7.4.9 → 7.4.10
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 +2 -2
- package/build/Components/ObjectBrowser.js +24 -2
- package/build/Components/ObjectBrowser.js.map +1 -1
- package/build/LegacyConnection.d.ts +13 -1
- package/build/LegacyConnection.js.map +1 -1
- package/build/types.d.ts +14 -1
- package/index.css +56 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ If you want to create the configuration page with ReactJS:
|
|
|
13
13
|
- Change `name` from `src` to `ADAPTERNAME-admin` (Of course replace `ADAPTERNAME` with yours)
|
|
14
14
|
- Add to devDependencies:
|
|
15
15
|
```json
|
|
16
|
-
"@iobroker/adapter-react-v5": "^7.4.
|
|
16
|
+
"@iobroker/adapter-react-v5": "^7.4.10",
|
|
17
17
|
```
|
|
18
18
|
Versions can be higher.
|
|
19
19
|
So your `src/package.json` should look like:
|
|
@@ -24,7 +24,7 @@ If you want to create the configuration page with ReactJS:
|
|
|
24
24
|
"version": "0.1.0",
|
|
25
25
|
"private": true,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@iobroker/adapter-react-v5": "^7.4.
|
|
27
|
+
"@iobroker/adapter-react-v5": "^7.4.10",
|
|
28
28
|
"@iobroker/build-tools": "^1.0.0",
|
|
29
29
|
"babel-eslint": "^10.1.0",
|
|
30
30
|
"react-scripts": "^5.0.1"
|
|
@@ -2287,10 +2287,32 @@ export class ObjectBrowserClass extends Component {
|
|
|
2287
2287
|
else {
|
|
2288
2288
|
this.localStorage.removeItem(`${this.props.dialogName || 'App'}.objectSelected`);
|
|
2289
2289
|
if (this.state.selected.length) {
|
|
2290
|
-
this.setState({ selected: [] }, () =>
|
|
2290
|
+
this.setState({ selected: [] }, () => {
|
|
2291
|
+
if (this.props.onSelect) {
|
|
2292
|
+
if (this.state.focused && this.props.allowNonObjects) {
|
|
2293
|
+
// remove a task to select the pre-selected item if now we want to see another object
|
|
2294
|
+
if (this.selectFirst && this.selectFirst !== this.state.selected[0]) {
|
|
2295
|
+
this.selectFirst = '';
|
|
2296
|
+
}
|
|
2297
|
+
this.props.onSelect([this.state.focused], null, isDouble);
|
|
2298
|
+
}
|
|
2299
|
+
else {
|
|
2300
|
+
this.props.onSelect([], '');
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
});
|
|
2291
2304
|
}
|
|
2292
2305
|
else if (this.props.onSelect) {
|
|
2293
|
-
this.props.
|
|
2306
|
+
if (this.state.focused && this.props.allowNonObjects) {
|
|
2307
|
+
// remove a task to select the pre-selected item if now we want to see another object
|
|
2308
|
+
if (this.selectFirst && this.selectFirst !== this.state.selected[0]) {
|
|
2309
|
+
this.selectFirst = '';
|
|
2310
|
+
}
|
|
2311
|
+
this.props.onSelect([this.state.focused], null, isDouble);
|
|
2312
|
+
}
|
|
2313
|
+
else {
|
|
2314
|
+
this.props.onSelect([], '');
|
|
2315
|
+
}
|
|
2294
2316
|
}
|
|
2295
2317
|
}
|
|
2296
2318
|
}
|