From bebd286e0ec9dd7fc5de298cd095108ea30dcb85 Mon Sep 17 00:00:00 2001 From: Arjun Porwal <65214523+ap211unitech@users.noreply.github.com> Date: Wed, 28 May 2025 17:56:34 +0530 Subject: [PATCH] fix: prevent rendering without options for specific types in InputAddress component (#11583) --- packages/react-components/src/InputAddress/index.tsx | 2 +- packages/react-params/src/Param/Account.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-components/src/InputAddress/index.tsx b/packages/react-components/src/InputAddress/index.tsx index 3ba9f9f60e..c1211ac4cd 100644 --- a/packages/react-components/src/InputAddress/index.tsx +++ b/packages/react-components/src/InputAddress/index.tsx @@ -154,7 +154,7 @@ class InputAddress extends React.PureComponent { const hasOptions = (options && options.length !== 0) || (optionsAll && Object.keys(optionsAll[type]).length !== 0); // the options could be delayed, don't render without - if (!hasOptions && !isDisabled) { + if (!hasOptions && !isDisabled && !['allPlus'].includes(type)) { // This is nasty, but since this things is non-functional, there is not much // we can do (well, wrap it, however that approach is deprecated here) return ( diff --git a/packages/react-params/src/Param/Account.tsx b/packages/react-params/src/Param/Account.tsx index 6d17bfa90c..ea0b3bdb22 100644 --- a/packages/react-params/src/Param/Account.tsx +++ b/packages/react-params/src/Param/Account.tsx @@ -56,7 +56,7 @@ function Account (props: Props): React.ReactElement { isInput label={label} onChange={_onChange} - placeholder='5...' + placeholder='5GLFK...' type='allPlus' withEllipsis withLabel={withLabel}