fix the system paste button appears again after the user tap outside

This commit is contained in:
MaysWind
2026-01-19 22:23:24 +08:00
parent b0e6764bfe
commit fc9581580c
+2 -1
View File
@@ -365,7 +365,8 @@ function paste(): void {
currentValue.value = getStringValue(parsedAmount, false);
}).catch(error => {
pastingAmount.value = false;
// Do not set pastingAmount to false here
// In iOS, system will show the paste context menu, if user click outside, the paste action should not be triggered again
logger.error('failed to read clipboard text', error);
});
}