question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS issue: Modal closes immediately after launch

See original GitHub issue

If you haven’t already, check out our contributing guidelines for onboarding!


Expected Result:

Add attachment modal should remain open until dismissed.

Actual Result:

Add Attachment modal closes immediately when we attempt to display it. This only seems to occur when we attempt to launch Modal B from a callback within Modal A

Action Performed:

At present, we’ve applied a temporary fix for this issue by using setTimeout to delay the launching of the second Modal However, that fix is sub-optimal and we are seeking a better permanent solution. See screen recording for a demo of the issue.

  1. Open Expensify.cash on iOS
  2. Tap into a chat with 2 or more participants
  3. Click the paperclip icon to launch Modal A
  4. Click Add Attachment to launch Modal B
  5. Notice the Add Attachment modal (Modal B) closes immediately

Notes

This is the location of the problem/workaround.

Platform:

iOS

Version Number: 1.0.2-89

Videos:

https://user-images.githubusercontent.com/31225194/111735258-d42cc680-881f-11eb-8735-e50778c17bb2.mov

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:25 (23 by maintainers)

github_iconTop GitHub Comments

1reaction
shawnbortoncommented, Mar 26, 2021

@kidroca no need for a title. Here are the assets you need: Icons.zip

1reaction
AndrewGablecommented, Mar 25, 2021

@kidroca - Thank you for your solution, I have sent sent you the job on upwork. We look forward to your pull request.

Read more comments on GitHub >

github_iconTop Results From Across the Web

In iOS 15, when the app is restarted, it immediately crashes.
After the iOS 15 update, the following process causes the app to die. Go to the home screen while running the app; Completely...
Read more >
IOS crash when closing a modal in expo managed project
When my app starts, there is a modal showing up with a button to access the app without any account. The crashs happen...
Read more >
Using modals in Slack apps
An app has the ability to close views within a modal. This can happen only in response to the user clicking a submit...
Read more >
Modal · Bootstrap v5.1
Clicking on the modal “backdrop” will automatically close the modal. Bootstrap only supports one modal window at a time. Nested modals aren't supported...
Read more >
Fix crash issues when launching InDesign - Adobe Support
Before you proceed, follow these steps to troubleshoot some of the common issues yourself if InDesign crashes unexpectedly or becomes ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found