Skip to content

Commit

Permalink
Fix function sentence field content not wrapping (#7191)
Browse files Browse the repository at this point in the history
  • Loading branch information
D8H authored Nov 26, 2024
1 parent 717948c commit 59685bc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ export const EventsFunctionPropertiesEditor = ({
<Trans>Sentence in Events Sheet</Trans>
}
fullWidth
multiline
value={
getterFunction
? 'Change ' +
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 59685bc

Please sign in to comment.