diff --git a/src/text-input/index.tsx b/src/text-input/index.tsx index fde3099d16..2a9f955165 100644 --- a/src/text-input/index.tsx +++ b/src/text-input/index.tsx @@ -226,6 +226,11 @@ export const TextInput = factory(function TextInput({ const inputFocused = focus.isFocused('input'); const autofilled = Boolean(icache.get('autofilled')); + let leadingElements; + if (leading) { + leadingElements = Array.isArray(leading) ? leading : [leading]; + } + return (