wini-web-components 2.5.3 → 2.5.5
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.
|
@@ -236,7 +236,7 @@ var TSelectMultiple = /** @class */ (function (_super) {
|
|
|
236
236
|
this.setState(__assign(__assign({}, this.state), { value: (_a = this.props.value) !== null && _a !== void 0 ? _a : [] }));
|
|
237
237
|
//
|
|
238
238
|
if (this.state.isOpen && (prevState.isOpen !== this.state.isOpen || prevState.value.length !== this.state.value.length)) {
|
|
239
|
-
var thisPopupRect = (_b =
|
|
239
|
+
var thisPopupRect = (_b = this.containerRef.current.querySelector(".select-multi-popup")) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect();
|
|
240
240
|
if (thisPopupRect) {
|
|
241
241
|
var style = void 0;
|
|
242
242
|
if (prevState.isOpen !== this.state.isOpen && thisPopupRect.right > document.body.offsetWidth) {
|
|
@@ -226,7 +226,7 @@ var TSelect1 = /** @class */ (function (_super) {
|
|
|
226
226
|
this.inputRef.current.value = "".concat((_d = (_c = this.state.options.find(function (e) { return e.id === _this.state.value; })) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : "");
|
|
227
227
|
//
|
|
228
228
|
if (this.state.isOpen && prevState.isOpen !== this.state.isOpen) {
|
|
229
|
-
var thisPopupRect = (_e =
|
|
229
|
+
var thisPopupRect = (_e = this.containerRef.current.querySelector(".select1-popup")) === null || _e === void 0 ? void 0 : _e.getBoundingClientRect();
|
|
230
230
|
if (thisPopupRect) {
|
|
231
231
|
var style = void 0;
|
|
232
232
|
if (thisPopupRect.right > document.body.offsetWidth) {
|