@jetbrains/ring-ui 5.0.88 → 5.0.89
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import angular from 'angular';
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, {cloneElement} from 'react';
|
|
4
4
|
|
|
5
5
|
import {render, hydrate} from '../global/react-render-adapter';
|
|
6
6
|
import {RerenderableSelect} from '../select/select';
|
|
@@ -68,9 +68,12 @@ class SelectLazy {
|
|
|
68
68
|
_clickHandler() {
|
|
69
69
|
this.detachEvents();
|
|
70
70
|
if (this.type === 'dropdown') {
|
|
71
|
-
render(this.reactSelect,
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
render(cloneElement(this.reactSelect, {
|
|
72
|
+
ref: node => {
|
|
73
|
+
this.selectRef(node);
|
|
74
|
+
node?._openPopupIfClosed?.();
|
|
75
|
+
}
|
|
76
|
+
}), this.container);
|
|
74
77
|
} else {
|
|
75
78
|
hydrate(this.reactSelect, this.container);
|
|
76
79
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import angular from 'angular';
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { cloneElement } from 'react';
|
|
4
4
|
import { render, hydrate } from '../global/react-render-adapter.js';
|
|
5
5
|
import { RerenderableSelect } from '../select/select.js';
|
|
6
6
|
import 'react-dom';
|
|
@@ -138,9 +138,12 @@ class SelectLazy {
|
|
|
138
138
|
_clickHandler() {
|
|
139
139
|
this.detachEvents();
|
|
140
140
|
if (this.type === 'dropdown') {
|
|
141
|
-
render(this.reactSelect,
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
render( /*#__PURE__*/cloneElement(this.reactSelect, {
|
|
142
|
+
ref: node => {
|
|
143
|
+
this.selectRef(node);
|
|
144
|
+
node?._openPopupIfClosed?.();
|
|
145
|
+
}
|
|
146
|
+
}), this.container);
|
|
144
147
|
} else {
|
|
145
148
|
hydrate(this.reactSelect, this.container);
|
|
146
149
|
}
|