261116_03_ENH: KriColorPalette 중첩 삼항 제거 및 Dice UI 출처 주석 추가
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user