mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Remove former fix that triggered a bug where values were not persisted after editing expression in event sheet (#5455)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user