@sarunyu/system-one 4.7.2 → 4.7.4

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 CHANGED
@@ -3490,7 +3490,7 @@ const Input = forwardRef(function Input2({
3490
3490
  const controlled = value !== void 0;
3491
3491
  const currentValue = controlled ? value : internalValue;
3492
3492
  const isDisabled = forceState === "disabled";
3493
- const state = forceState ?? (focused ? "focus" : "default");
3493
+ const state = forceState && forceState !== "default" ? forceState : focused ? "focus" : "default";
3494
3494
  const isError = state === "error";
3495
3495
  const isFocus = state === "focus";
3496
3496
  const isFilled = currentValue.length > 0;