mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 17:54:30 +08:00
fix the system paste button appears again after the user tap outside
This commit is contained in:
@@ -365,7 +365,8 @@ function paste(): void {
|
|||||||
|
|
||||||
currentValue.value = getStringValue(parsedAmount, false);
|
currentValue.value = getStringValue(parsedAmount, false);
|
||||||
}).catch(error => {
|
}).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);
|
logger.error('failed to read clipboard text', error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user