@uniai-fe/uds-primitives 0.12.13 → 0.12.14
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniai-fe/uds-primitives",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.14",
|
|
4
4
|
"description": "UNIAI Design System; Primitives Components Package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -88,10 +88,10 @@
|
|
|
88
88
|
"sass": "^1.102.0",
|
|
89
89
|
"typescript": "6.0.3",
|
|
90
90
|
"@uniai-fe/eslint-config": "0.4.4",
|
|
91
|
-
"@uniai-fe/
|
|
92
|
-
"@uniai-fe/util-functions": "0.4.3",
|
|
91
|
+
"@uniai-fe/next-devkit": "0.4.1",
|
|
93
92
|
"@uniai-fe/tsconfig": "0.2.0",
|
|
94
|
-
"@uniai-fe/
|
|
93
|
+
"@uniai-fe/uds-foundation": "0.6.0",
|
|
94
|
+
"@uniai-fe/util-functions": "0.4.3"
|
|
95
95
|
},
|
|
96
96
|
"scripts": {
|
|
97
97
|
"check:pre-commit": "pnpm --dir ../../.. run check:pre-commit",
|
|
@@ -187,6 +187,13 @@ export function SelectDefault<OptionData = unknown>({
|
|
|
187
187
|
const shouldForceCustomFromInput = Boolean(
|
|
188
188
|
customOptions && !selectedOption && forcedCustomLabelValue,
|
|
189
189
|
);
|
|
190
|
+
// 명시된 외부 선택을 우선하고, 복원된 직접입력은 값을 비워도 입력창과 포커스를 유지한다.
|
|
191
|
+
if (shouldForceCustomFromInput && selectedValueFromItems === undefined) {
|
|
192
|
+
setSelectionState(previousState => ({
|
|
193
|
+
...previousState,
|
|
194
|
+
selectedValue: SELECT_CUSTOM_OPTION_VALUE,
|
|
195
|
+
}));
|
|
196
|
+
}
|
|
190
197
|
const resolvedSelectedOption = useMemo(
|
|
191
198
|
() =>
|
|
192
199
|
shouldForceCustomFromInput
|