funda-ui 4.5.611 → 4.5.621
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/LiveSearch/index.js
CHANGED
|
@@ -2933,19 +2933,18 @@ var LiveSearch = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(
|
|
|
2933
2933
|
windowScrollUpdate = _useWindowScroll2[1];
|
|
2934
2934
|
function popwinPosInit() {
|
|
2935
2935
|
var showAct = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
2936
|
-
if (listContentRef.current === null ||
|
|
2936
|
+
if (listContentRef.current === null || inputRef.current === null) return;
|
|
2937
2937
|
var contentHeightOffset = 80;
|
|
2938
2938
|
var contentMaxHeight = 0;
|
|
2939
2939
|
|
|
2940
2940
|
// update modal position
|
|
2941
2941
|
var _modalRef = document.querySelector("#livesearch__options-wrapper-".concat(idRes));
|
|
2942
2942
|
var _triggerRef = inputRef.current;
|
|
2943
|
-
var _triggerXaxisRef = rootRef.current;
|
|
2944
2943
|
|
|
2945
2944
|
// console.log(getAbsolutePositionOfStage(_triggerRef));
|
|
2946
2945
|
|
|
2947
2946
|
if (_modalRef === null) return;
|
|
2948
|
-
var _getAbsolutePositionO = (0,funda_utils_dist_cjs_getElementProperty__WEBPACK_IMPORTED_MODULE_8__.getAbsolutePositionOfStage)(
|
|
2947
|
+
var _getAbsolutePositionO = (0,funda_utils_dist_cjs_getElementProperty__WEBPACK_IMPORTED_MODULE_8__.getAbsolutePositionOfStage)(_triggerRef),
|
|
2949
2948
|
x = _getAbsolutePositionO.x;
|
|
2950
2949
|
var _getAbsolutePositionO2 = (0,funda_utils_dist_cjs_getElementProperty__WEBPACK_IMPORTED_MODULE_8__.getAbsolutePositionOfStage)(_triggerRef),
|
|
2951
2950
|
y = _getAbsolutePositionO2.y,
|
|
@@ -2933,19 +2933,18 @@ var LiveSearch = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(
|
|
|
2933
2933
|
windowScrollUpdate = _useWindowScroll2[1];
|
|
2934
2934
|
function popwinPosInit() {
|
|
2935
2935
|
var showAct = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
2936
|
-
if (listContentRef.current === null ||
|
|
2936
|
+
if (listContentRef.current === null || inputRef.current === null) return;
|
|
2937
2937
|
var contentHeightOffset = 80;
|
|
2938
2938
|
var contentMaxHeight = 0;
|
|
2939
2939
|
|
|
2940
2940
|
// update modal position
|
|
2941
2941
|
var _modalRef = document.querySelector("#livesearch__options-wrapper-".concat(idRes));
|
|
2942
2942
|
var _triggerRef = inputRef.current;
|
|
2943
|
-
var _triggerXaxisRef = rootRef.current;
|
|
2944
2943
|
|
|
2945
2944
|
// console.log(getAbsolutePositionOfStage(_triggerRef));
|
|
2946
2945
|
|
|
2947
2946
|
if (_modalRef === null) return;
|
|
2948
|
-
var _getAbsolutePositionO = (0,funda_utils_dist_cjs_getElementProperty__WEBPACK_IMPORTED_MODULE_8__.getAbsolutePositionOfStage)(
|
|
2947
|
+
var _getAbsolutePositionO = (0,funda_utils_dist_cjs_getElementProperty__WEBPACK_IMPORTED_MODULE_8__.getAbsolutePositionOfStage)(_triggerRef),
|
|
2949
2948
|
x = _getAbsolutePositionO.x;
|
|
2950
2949
|
var _getAbsolutePositionO2 = (0,funda_utils_dist_cjs_getElementProperty__WEBPACK_IMPORTED_MODULE_8__.getAbsolutePositionOfStage)(_triggerRef),
|
|
2951
2950
|
y = _getAbsolutePositionO2.y,
|
|
@@ -242,7 +242,7 @@ const LiveSearch = forwardRef((props: LiveSearchProps, externalRef: any) => {
|
|
|
242
242
|
|
|
243
243
|
|
|
244
244
|
function popwinPosInit(showAct: boolean = true) {
|
|
245
|
-
if (listContentRef.current === null ||
|
|
245
|
+
if (listContentRef.current === null || inputRef.current === null) return;
|
|
246
246
|
|
|
247
247
|
const contentHeightOffset = 80;
|
|
248
248
|
let contentMaxHeight = 0;
|
|
@@ -250,13 +250,12 @@ const LiveSearch = forwardRef((props: LiveSearchProps, externalRef: any) => {
|
|
|
250
250
|
// update modal position
|
|
251
251
|
const _modalRef: any = document.querySelector(`#livesearch__options-wrapper-${idRes}`);
|
|
252
252
|
const _triggerRef: any = inputRef.current;
|
|
253
|
-
const _triggerXaxisRef: any = rootRef.current;
|
|
254
253
|
|
|
255
254
|
// console.log(getAbsolutePositionOfStage(_triggerRef));
|
|
256
255
|
|
|
257
256
|
if (_modalRef === null) return;
|
|
258
257
|
|
|
259
|
-
const { x } = getAbsolutePositionOfStage(
|
|
258
|
+
const { x } = getAbsolutePositionOfStage(_triggerRef);
|
|
260
259
|
const { y, width, height } = getAbsolutePositionOfStage(_triggerRef);
|
|
261
260
|
const _triggerBox = _triggerRef.getBoundingClientRect();
|
|
262
261
|
let targetPos = '';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "UIUX Lab",
|
|
3
3
|
"email": "uiuxlab@gmail.com",
|
|
4
4
|
"name": "funda-ui",
|
|
5
|
-
"version": "4.5.
|
|
5
|
+
"version": "4.5.621",
|
|
6
6
|
"description": "React components using pure Bootstrap 5+ which does not contain any external style and script libraries.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|