Просмотр исходного кода

fix: can't present quick add sheet after switching to settings tab

Tienson Qin 1 месяц назад
Родитель
Сommit
1b37c73864

+ 1 - 1
ios/App/App/NativeBottomSheetPlugin.swift

@@ -110,7 +110,7 @@ public class NativeBottomSheetPlugin: CAPPlugin, CAPBridgedPlugin {
 
                 // After a short delay, JS should have navigated away from the sheet route.
                 // Now we fade the webview in and remove snapshot/placeholder.
-                DispatchQueue.main.asyncAfter(deadline: .now() + 0.065) {
+                DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
                     webView.alpha = 1
                     // Remove the frozen background
                     self.clearSnapshot()

+ 1 - 0
src/main/mobile/components/popup.cljs

@@ -56,6 +56,7 @@
               current-tab @mobile-state/*tab]
           (state/pub-event! [:mobile/clear-edit])
           (mobile-state/set-popup! nil)
+          (reset! *last-popup-data nil)
           (when (and current-tab quick-add?)
             (mobile-state/set-tab! current-tab))))