1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-02 09:47:00 +03:00

F OpenNebula/one#6430: Make textcontroller area resizable (#3132)

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
This commit is contained in:
vichansson 2024-06-28 16:54:25 +03:00 committed by GitHub
parent e731f41f54
commit 42c0df339b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,6 +94,7 @@ const TextController = memo(
max: fieldProps.max,
step: fieldProps.step,
}),
...(multiline && { style: { resize: 'both' } }),
}}
error={Boolean(error)}
helperText={
@ -101,6 +102,7 @@ const TextController = memo(
}
FormHelperTextProps={{ 'data-cy': `${cy}-error` }}
{...fieldProps}
sx={multiline ? { textarea: { resize: 'both' } } : {}}
/>
)
},