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} style={surfaceStyle}
frameStyle={frameStyle} frameStyle={frameStyle}
entering={contentEntering} entering={contentEntering}
exiting={contentExiting.withCallback((finished) => { exiting={
"worklet"; isWeb
if (finished) { ? undefined
runOnJS(onExited)(); : contentExiting.withCallback((finished) => {
} "worklet";
})} if (finished) {
runOnJS(onExited)();
}
})
}
> >
{body} {body}
</FloatingSurface> </FloatingSurface>