fix(app): prevent duplicate web menu actions

This commit is contained in:
Mohamed Boudra
2026-07-21 14:04:26 +02:00
parent 6acc82e9d3
commit fd4e13735c

View File

@@ -218,12 +218,16 @@ function renderDropdownSurface(input: {
style={surfaceStyle}
frameStyle={frameStyle}
entering={contentEntering}
exiting={contentExiting.withCallback((finished) => {
"worklet";
if (finished) {
runOnJS(onExited)();
}
})}
exiting={
isWeb
? undefined
: contentExiting.withCallback((finished) => {
"worklet";
if (finished) {
runOnJS(onExited)();
}
})
}
>
{body}
</FloatingSurface>