261116_03_ENH: KriColorPalette 중첩 삼항 제거 및 Dice UI 출처 주석 추가

This commit is contained in:
2026-11-16 16:54:42 +09:00
parent e64a48417b
commit 623615a287
3 changed files with 11 additions and 8 deletions

View File

@@ -101,11 +101,12 @@ function VisuallyHiddenInput<T = InputValue>(
const propertyKey = isCheckInput ? "checked" : "value";
const eventType = isCheckInput ? "click" : "input";
const serializedCurrentValue = isCheckInput
? checked
: typeof value === "object" && value !== null
? JSON.stringify(value)
: value;
let serializedCurrentValue: unknown = value;
if (isCheckInput) {
serializedCurrentValue = checked;
} else if (typeof value === "object" && value !== null) {
serializedCurrentValue = JSON.stringify(value);
}
const descriptor = Object.getOwnPropertyDescriptor(inputProto, propertyKey);