mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
Performance improvement for text element of inspector
This commit is contained in:
parent
394163912d
commit
37094dd124
1 changed files with 7 additions and 2 deletions
|
|
@ -13,10 +13,15 @@ export const Text = ({
|
|||
<ToolTip label={displayName} meta={paramMeta}/>
|
||||
<input
|
||||
type="text"
|
||||
onChange={(e) => onChange(param, 'value', e.target.value, paramType)}
|
||||
onBlur={(e) => onChange(param, 'value', e.target.value, paramType)}
|
||||
onKeyDown={(e) => {
|
||||
if(e.key === 'Enter') {
|
||||
onChange(param, 'value', e.target.value, paramType)
|
||||
}
|
||||
}}
|
||||
className="form-control text-field"
|
||||
name=""
|
||||
value={value}
|
||||
defaultValue={value}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue