Performance improvement for text element of inspector

This commit is contained in:
navaneeth 2021-06-03 12:11:05 +05:30
parent 394163912d
commit 37094dd124

View file

@ -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>
);