From c8c8195fe7296aa971420cbb4112eb6508bd74d0 Mon Sep 17 00:00:00 2001 From: Pierantonio Zocchi Date: Fri, 16 Jan 2026 16:16:11 +0100 Subject: [PATCH 1/2] Improve validation on file/image input --- src/components/RLFileInput/RLFileInput.tsx | 2 +- src/components/RLImageUpload/RLImageUpload.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/RLFileInput/RLFileInput.tsx b/src/components/RLFileInput/RLFileInput.tsx index f272217..94b9276 100644 --- a/src/components/RLFileInput/RLFileInput.tsx +++ b/src/components/RLFileInput/RLFileInput.tsx @@ -43,7 +43,7 @@ export const RLFileInput = forwardRef( const { errorMessage, isValid, validate } = useValidation({ rules, externalError: error }) useEffect(() => { - if (value !== undefined) { + if (value != null) { validate(value) } }, [value, validate]) diff --git a/src/components/RLImageUpload/RLImageUpload.tsx b/src/components/RLImageUpload/RLImageUpload.tsx index 5bdcced..305df77 100644 --- a/src/components/RLImageUpload/RLImageUpload.tsx +++ b/src/components/RLImageUpload/RLImageUpload.tsx @@ -28,7 +28,7 @@ export const RLImageUpload = forwardRef( const { errorMessage, isValid, validate } = useValidation({ rules, externalError: error }) useEffect(() => { - if (value !== undefined) { + if (value != null) { validate(value) } }, [value, validate]) From 6c36495a993bed43a5729a80ab5e884c1ff891e3 Mon Sep 17 00:00:00 2001 From: Pierantonio Zocchi Date: Fri, 16 Jan 2026 16:16:49 +0100 Subject: [PATCH 2/2] Add hoist prop to RLSelect with true as default --- src/components/RLSelect/RLSelect.tsx | 3 ++- src/components/RLSelect/types.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/RLSelect/RLSelect.tsx b/src/components/RLSelect/RLSelect.tsx index ab9bf41..babc43c 100644 --- a/src/components/RLSelect/RLSelect.tsx +++ b/src/components/RLSelect/RLSelect.tsx @@ -24,6 +24,7 @@ export const RLSelect = forwardRef( pill, filled, placement = 'bottom', + hoist = true, helpText, label, options = [], @@ -173,7 +174,7 @@ export const RLSelect = forwardRef(