Skip to content

Commit

Permalink
Update src/components/form/range/range.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Cee Chen <[email protected]>
  • Loading branch information
1Copenut and cee-chen authored Apr 16, 2024
1 parent 7b7a870 commit 08c8aa3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/form/range/range.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ export class EuiRangeClass extends Component<

if (target) {
return target.accessibleLabel
? `${target.value.toString()}, (${target.accessibleLabel})`
? `${target.value}, (${target.accessibleLabel})`
// Fall back to the label if it's a usable string
: typeof target.label === 'string'
? `${target.value.toString()}, (${target.label})`
? `${target.value}, (${target.label})`
: undefined;
}
};
Expand Down

0 comments on commit 08c8aa3

Please sign in to comment.