Fix review comments
Signed-off-by: AmbrishRamachandiran <ambrish.r@infosys.com>
This commit is contained in:
committed by
root
parent
400175a09d
commit
a5c4e902ed
@@ -88,7 +88,6 @@ export const components: Page[] = [
|
||||
{
|
||||
title: 'RangeSlider',
|
||||
slug: 'range-slider',
|
||||
status: 'new',
|
||||
},
|
||||
{
|
||||
title: 'SearchField',
|
||||
|
||||
@@ -38,8 +38,8 @@ export const RangeSlider = forwardRef<HTMLDivElement, RangeSliderProps>(
|
||||
'aria-labelledby': ariaLabelledBy,
|
||||
} = props;
|
||||
|
||||
// Extract isRequired early since it's inherited from AriaSliderProps
|
||||
const isRequired = 'isRequired' in props ? props.isRequired : undefined;
|
||||
// Extract isRequired from props (inherited from AriaSliderProps)
|
||||
const isRequired = (props as any).isRequired;
|
||||
|
||||
useEffect(() => {
|
||||
if (!label && !ariaLabel && !ariaLabelledBy) {
|
||||
|
||||
Reference in New Issue
Block a user