Remove former fix that triggered a bug where values were not persisted after editing expression in event sheet (#5455)

This commit is contained in:
AlexandreS
2023-07-03 10:28:43 +02:00
committed by GitHub
parent 56e66d1c5a
commit 6644525dd0

View File

@@ -54,7 +54,14 @@ export default function InlinePopover(props: Props) {
return (
<ClickAwayListener
mouseEvent="onMouseDown"
// The click away listener cannot be closed on mousedown event because
// it does not give enough time to expression fields to be blurred and to
// persist the last typed value.
// TODO: Prevent default behavior when the mouseup event results from a text
// selection that started inside the expression field and the user released
// the mouse outside the InlinePopover.
// See https://github.com/4ian/GDevelop/issues/1718.
mouseEvent="onMouseUp"
onClickAway={event => {
// Clicks on dialogs (or their backdrop element) generated by
// the AlertProvider seem to trigger this click away listener