@teamturing/react-kit 2.23.1 → 2.23.2
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/dist/index.js +5 -0
- package/esm/core/Select/index.js +6 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -21641,6 +21641,11 @@ const Select = ({
|
|
|
21641
21641
|
const focusSelect = () => {
|
|
21642
21642
|
selectRef.current?.focus();
|
|
21643
21643
|
};
|
|
21644
|
+
React.useEffect(() => {
|
|
21645
|
+
if (selectRef.current) {
|
|
21646
|
+
setIsValueEmpty(selectRef.current.value === PLACEHOLDER_VALUE);
|
|
21647
|
+
}
|
|
21648
|
+
}, [selectRef.current]);
|
|
21644
21649
|
return /*#__PURE__*/jsxRuntimeExports.jsxs(SelectWrapper, {
|
|
21645
21650
|
disabled: disabled,
|
|
21646
21651
|
onClick: focusSelect,
|
package/esm/core/Select/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { forwardRef, useState } from 'react';
|
|
1
|
+
import { forwardRef, useState, useEffect } from 'react';
|
|
2
2
|
import SvgChevronDown from '../../packages/icons/esm/ChevronDown.js';
|
|
3
3
|
import { forcePixelValue } from '../../packages/utils/esm/forcePixelValue.js';
|
|
4
4
|
import { isFunction } from '../../packages/utils/esm/isFunction.js';
|
|
@@ -26,6 +26,11 @@ const Select = ({
|
|
|
26
26
|
const focusSelect = () => {
|
|
27
27
|
selectRef.current?.focus();
|
|
28
28
|
};
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
if (selectRef.current) {
|
|
31
|
+
setIsValueEmpty(selectRef.current.value === PLACEHOLDER_VALUE);
|
|
32
|
+
}
|
|
33
|
+
}, [selectRef.current]);
|
|
29
34
|
return /*#__PURE__*/jsxRuntimeExports.jsxs(SelectWrapper, {
|
|
30
35
|
disabled: disabled,
|
|
31
36
|
onClick: focusSelect,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teamturing/react-kit",
|
|
3
|
-
"version": "2.23.
|
|
3
|
+
"version": "2.23.2",
|
|
4
4
|
"description": "React components, hooks for create teamturing web application",
|
|
5
5
|
"author": "Sungchang Park <psch300@gmail.com> (https://github.com/psch300)",
|
|
6
6
|
"homepage": "https://github.com/weareteamturing/bombe#readme",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"react-textarea-autosize": "^8.5.3",
|
|
67
67
|
"styled-system": "^5.1.5"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "1a4f16342a82422da1758ac774fde53bdd992a33"
|
|
70
70
|
}
|