From 08c8aa314eac16856f53649b1abcb797917b2f2a Mon Sep 17 00:00:00 2001 From: Trevor Pierce <1Copenut@users.noreply.github.com> Date: Tue, 16 Apr 2024 10:42:35 -0500 Subject: [PATCH] Update src/components/form/range/range.tsx Co-authored-by: Cee Chen <549407+cee-chen@users.noreply.github.com> --- src/components/form/range/range.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/form/range/range.tsx b/src/components/form/range/range.tsx index 2277d433cae..d64fc15f523 100644 --- a/src/components/form/range/range.tsx +++ b/src/components/form/range/range.tsx @@ -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; } };