From 59685bc4c42eba7d5acb5347b01948421cdf7e42 Mon Sep 17 00:00:00 2001 From: D8H Date: Tue, 26 Nov 2024 12:38:08 +0100 Subject: [PATCH] Fix function sentence field content not wrapping (#7191) --- .../EventsFunctionPropertiesEditor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/newIDE/app/src/EventsFunctionsExtensionEditor/EventsFunctionConfigurationEditor/EventsFunctionPropertiesEditor.js b/newIDE/app/src/EventsFunctionsExtensionEditor/EventsFunctionConfigurationEditor/EventsFunctionPropertiesEditor.js index 89d79c894036..058e99e5ae6a 100644 --- a/newIDE/app/src/EventsFunctionsExtensionEditor/EventsFunctionConfigurationEditor/EventsFunctionPropertiesEditor.js +++ b/newIDE/app/src/EventsFunctionsExtensionEditor/EventsFunctionConfigurationEditor/EventsFunctionPropertiesEditor.js @@ -451,6 +451,7 @@ export const EventsFunctionPropertiesEditor = ({ Sentence in Events Sheet } fullWidth + multiline value={ getterFunction ? 'Change ' + @@ -485,9 +486,10 @@ export const EventsFunctionPropertiesEditor = ({ } translatableHintText={t`Note: write _PARAMx_ for parameters, e.g: Flash _PARAM1_ for 5 seconds`} fullWidth + multiline value={eventsFunction.getSentence()} onChange={text => { - eventsFunction.setSentence(text); + eventsFunction.setSentence(text.replace(/\n/g, '')); if (onConfigurationUpdated) onConfigurationUpdated(); forceUpdate();