1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: make variant payload text box multiline (#1060)

* fix: make variant payload text box multiline

* refactor: adjust min/max rows

* refactor: use fixed number of rows to avoid MUI render loop bug
This commit is contained in:
olav 2022-06-03 15:40:19 +02:00 committed by sighphyre
parent 4a5ed3c3e7
commit 5ff790aa81

View File

@ -336,6 +336,8 @@ export const AddVariant = ({
name="variant-payload-value"
id="variant-payload-value"
label="Value"
multiline={payload.type !== 'string'}
rows={payload.type === 'string' ? 1 : 4}
className={themeStyles.fullWidth}
value={payload.value}
onChange={e => onPayload('value')(e.target.value)}