@kdcloudjs/kdesign 1.7.33-stable.10 → 1.7.33-stable.12
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/CHANGELOG.md +71 -0
- package/dist/kdesign.css +1 -1
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +3 -9
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +1 -1
- package/dist/kdesign.min.js +2 -2
- package/dist/kdesign.min.js.map +1 -1
- package/es/_utils/usePopper.js +1 -1
- package/es/input/TextArea.js +1 -7
- package/lib/_utils/usePopper.js +1 -1
- package/lib/input/TextArea.js +1 -7
- package/package.json +1 -1
package/es/_utils/usePopper.js
CHANGED
|
@@ -415,7 +415,7 @@ function usePopper(locatorElement, popperElement, props) {
|
|
|
415
415
|
setArrowPos(_arrowPos);
|
|
416
416
|
setNextPlacement(currentPlacement);
|
|
417
417
|
}
|
|
418
|
-
}, [locatorRef, popperRef, container, trigger, mousePos, autoPlacement, gap, arrowOffset, arrowSize, arrowWidth]);
|
|
418
|
+
}, [locatorRef, popperRef, container, trigger, mousePos, autoPlacement, gap, arrowOffset, arrowSize, arrowWidth, align === null || align === void 0 ? void 0 : align.left, align === null || align === void 0 ? void 0 : align.top]);
|
|
419
419
|
useEffect(function () {
|
|
420
420
|
if (canAlign) {
|
|
421
421
|
alignPopper();
|
package/es/input/TextArea.js
CHANGED
|
@@ -94,8 +94,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
94
94
|
}, [autoSize, textareaRef, style]);
|
|
95
95
|
useResizeObserver(textareaRef.current, resizeTextarea);
|
|
96
96
|
var handleChange = function handleChange(e) {
|
|
97
|
-
|
|
98
|
-
setValue(e.target.value);
|
|
97
|
+
propsValue === undefined && setValue(e.target.value);
|
|
99
98
|
onChange && onChange(e);
|
|
100
99
|
};
|
|
101
100
|
var handleFocus = function handleFocus(e) {
|
|
@@ -140,11 +139,6 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
140
139
|
setNumberMarkError(false);
|
|
141
140
|
}
|
|
142
141
|
}, [value]);
|
|
143
|
-
useEffect(function () {
|
|
144
|
-
if (propsValue !== undefined) {
|
|
145
|
-
setValue(propsValue);
|
|
146
|
-
}
|
|
147
|
-
}, [propsValue, setValue]);
|
|
148
142
|
useEffect(function () {
|
|
149
143
|
if (focused && !showNumberMark) {
|
|
150
144
|
setShowNumberMark(true);
|
package/lib/_utils/usePopper.js
CHANGED
|
@@ -429,7 +429,7 @@ function usePopper(locatorElement, popperElement, props) {
|
|
|
429
429
|
setArrowPos(_arrowPos);
|
|
430
430
|
setNextPlacement(currentPlacement);
|
|
431
431
|
}
|
|
432
|
-
}, [locatorRef, popperRef, container, trigger, mousePos, autoPlacement, gap, arrowOffset, arrowSize, arrowWidth]);
|
|
432
|
+
}, [locatorRef, popperRef, container, trigger, mousePos, autoPlacement, gap, arrowOffset, arrowSize, arrowWidth, align === null || align === void 0 ? void 0 : align.left, align === null || align === void 0 ? void 0 : align.top]);
|
|
433
433
|
(0, _react.useEffect)(function () {
|
|
434
434
|
if (canAlign) {
|
|
435
435
|
alignPopper();
|
package/lib/input/TextArea.js
CHANGED
|
@@ -106,8 +106,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
106
106
|
}, [autoSize, textareaRef, style]);
|
|
107
107
|
(0, _hooks.useResizeObserver)(textareaRef.current, resizeTextarea);
|
|
108
108
|
var handleChange = function handleChange(e) {
|
|
109
|
-
|
|
110
|
-
setValue(e.target.value);
|
|
109
|
+
propsValue === undefined && setValue(e.target.value);
|
|
111
110
|
onChange && onChange(e);
|
|
112
111
|
};
|
|
113
112
|
var handleFocus = function handleFocus(e) {
|
|
@@ -152,11 +151,6 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
152
151
|
setNumberMarkError(false);
|
|
153
152
|
}
|
|
154
153
|
}, [value]);
|
|
155
|
-
(0, _react.useEffect)(function () {
|
|
156
|
-
if (propsValue !== undefined) {
|
|
157
|
-
setValue(propsValue);
|
|
158
|
-
}
|
|
159
|
-
}, [propsValue, setValue]);
|
|
160
154
|
(0, _react.useEffect)(function () {
|
|
161
155
|
if (focused && !showNumberMark) {
|
|
162
156
|
setShowNumberMark(true);
|