From 42b2dc80e2cd0decb98bd6ab142afe5a03096aa3 Mon Sep 17 00:00:00 2001 From: Paul Li <82799722+wmdev0808@users.noreply.github.com> Date: Tue, 22 Feb 2022 14:47:55 +0800 Subject: [PATCH] fix: Spaces are not allowed on widgets children names (tabs, menus, buttons etc.) (#11085) * fix: Spaces are not allowed on widgets children names (tabs, menus, buttons etc.) -- Set trimValue prop to false with property controls such as TabControl, MenuItemsControl, ButtonListControl, PrimaryColumnsControl * fix: Spaces are not allowed on widgets children names (tabs, menus, buttons etc.) -- Make trimValue property default to false --- app/client/src/components/ads/TextInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/src/components/ads/TextInput.tsx b/app/client/src/components/ads/TextInput.tsx index 8255be1b3f..ab371f8702 100644 --- a/app/client/src/components/ads/TextInput.tsx +++ b/app/client/src/components/ads/TextInput.tsx @@ -300,7 +300,7 @@ const TextInput = forwardRef( const [isFocused, setIsFocused] = useState(false); const [inputValue, setInputValue] = useState(props.defaultValue); - const { trimValue = true } = props; + const { trimValue = false } = props; const setRightSideRef = useCallback((ref: HTMLDivElement) => { if (ref) {