New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(ios): prevent modal windows from being swiped down #11057
Conversation
Tests:
|
…dev#10745) * [TIMOB-26862] Android: Modified TextField/TextArea to not flicker or log warnings when changing "text" property while keyboard is shown * Revert "[TIMOB-26862] Android: Modified TextField/TextArea to not flicker or log warnings when changing "text" property while keyboard is shown" This reverts commit 1d8eb8c. * [TIMOB-26862] Android: Modified TableView to better handle rows containing TextFields/TextAreas - All rows now keep their existing parent row container view. - We don't want to re-parent an EditText parent. Causes havoc with virtual keyboard. - Simplified TableView getView() recycling code.
@vijaysingh-axway Can you squash the commits please? Otherwise it's hard to cherry pick |
@janvennemann Can you review it please? |
@@ -46,6 +46,7 @@ - (void)_destroy | |||
|
|||
- (void)_configure | |||
{ | |||
forceModal = YES; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this set to YES
here when it's default value is defined as NO
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For iOS 12, by default it is true. So it is set 'YES' in configuration. For iOS 13, it'll take its value from property. Inside
- (void)viewDidDisappear:(BOOL)animated
{
if (isModal && closing) {
if (isModal && (closing || !forceModal)) {
[self windowDidClose];
}
}
we are checking this property for firing close event in iOS 13, which should not affect iOS 12 behaviour. So set it YES.
This has been already tested by Hans and Donovan.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I was just wondering what's the reason behind that. Thanks for the explanation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FR Passed Modal windows no longer being swiped down. Tested with the two test case from https://jira.appcelerator.org/browse/TIMOB-27169
Test Environment
MacOS Mojave version 10.14.4
Xcode 11 beta 5
Node.js ^8.11.1
iPhone 8 sim (13.0)
"NPM":"4.2.14","CLI":"7.1.1-master.2"
https://jira.appcelerator.org/browse/TIMOB-27169