Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/RLFileInput/RLFileInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const RLFileInput = forwardRef<RLFileInputRef, RLFileInputProps>(
const { errorMessage, isValid, validate } = useValidation({ rules, externalError: error })

useEffect(() => {
if (value !== undefined) {
if (value != null) {
validate(value)
}
}, [value, validate])
Expand Down
2 changes: 1 addition & 1 deletion src/components/RLImageUpload/RLImageUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const RLImageUpload = forwardRef<RLImageUploadRef, RLImageUploadProps>(
const { errorMessage, isValid, validate } = useValidation({ rules, externalError: error })

useEffect(() => {
if (value !== undefined) {
if (value != null) {
validate(value)
}
}, [value, validate])
Expand Down
3 changes: 2 additions & 1 deletion src/components/RLSelect/RLSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const RLSelect = forwardRef<RLSelectRef, RLSelectProps>(
pill,
filled,
placement = 'bottom',
hoist = true,
helpText,
label,
options = [],
Expand Down Expand Up @@ -173,7 +174,7 @@ export const RLSelect = forwardRef<RLSelectRef, RLSelectProps>(
<div className={`relative ${className ?? ''}`}>
<SlSelect
className={combinedClassName}
hoist
hoist={hoist}
value={templateValue}
name={name}
defaultValue={defaultValue}
Expand Down
1 change: 1 addition & 0 deletions src/components/RLSelect/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export interface RLSelectProps {
pill?: boolean
filled?: boolean
placement?: 'top' | 'bottom'
hoist?: boolean
helpText?: string
label?: string
options: RLSelectOptionType[]
Expand Down