-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Reverts "Fix TextField selects all content after the application is resumed (#156968)" #157378
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
Reverts "Fix TextField selects all content after the application is resumed (#156968)" #157378
Conversation
|
@bleroux The failure is:
Any idea why this PR would cause that? Do we need to check |
|
It was a bug in the test :-(. Sorry to revert for that reason. We can reland this change exactly as-is now that the test is fixed in the google repo. |
…sumed" (#157399) ## Description Relands #156968 wich was reverted in #157378 This PR makes `EditableText` aware of the lifecycle 'resumed' state to let the current selection unchanged when the application is resumed (on web and desktop, 'resumed' means the Flutter app window regained focus). Before this PR, on web and desktop, the whole content of a `TextField` was selected whenever a `TextField` gained focus. This is the correct behavior when tabbing between fields but it is not when a field regains focus after the application is resumed ## Related Issue Fixes [When switching to another browser tab or window and then going back, all text on TextField is selected automatically](#156078). ## Tests Adds 1 test.
|
Oh good news, looks like it was already relanded. Thanks! |
…esumed (flutter#156968)" (flutter#157378) Reverts: flutter#156968 Initiated by: jacobsimionato Reason for reverting: Google3 roll failing - see b/375019489 Original PR Author: bleroux Reviewed By: {justinmc, gspencergoog} This change reverts the following previous change: ## Description This PR makes `EditableText` aware of the lifecycle 'resumed' state to let the current selection unchanged when the application is resumed (on web and desktop, 'resumed' means the Flutter app window regained focus). Before this PR, on web and desktop, the whole content of a `TextField` was selected whenever a `TextField` gained focus. This is the correct behavior when tabbing between fields but it is not when a field regains focus after the application is resumed ## Related Issue Fixes [When switching to another browser tab or window and then going back, all text on TextField is selected automatically](flutter#156078). ## Tests Adds 1 test.
…sumed" (flutter#157399) ## Description Relands flutter#156968 wich was reverted in flutter#157378 This PR makes `EditableText` aware of the lifecycle 'resumed' state to let the current selection unchanged when the application is resumed (on web and desktop, 'resumed' means the Flutter app window regained focus). Before this PR, on web and desktop, the whole content of a `TextField` was selected whenever a `TextField` gained focus. This is the correct behavior when tabbing between fields but it is not when a field regains focus after the application is resumed ## Related Issue Fixes [When switching to another browser tab or window and then going back, all text on TextField is selected automatically](flutter#156078). ## Tests Adds 1 test.
…ion is resumed (#156968)" (flutter/flutter#157378)
…ion is resumed (#156968)" (flutter/flutter#157378)
…ion is resumed (#156968)" (flutter/flutter#157378)
…ion is resumed (#156968)" (flutter/flutter#157378)
…ion is resumed (#156968)" (flutter/flutter#157378)
Reverts: #156968
Initiated by: jacobsimionato
Reason for reverting: Google3 roll failing - see b/375019489
Original PR Author: bleroux
Reviewed By: {justinmc, gspencergoog}
This change reverts the following previous change:
Description
This PR makes
EditableTextaware of the lifecycle 'resumed' state to let the current selection unchanged when the application is resumed (on web and desktop, 'resumed' means the Flutter app window regained focus).Before this PR, on web and desktop, the whole content of a
TextFieldwas selected whenever aTextFieldgained focus. This is the correct behavior when tabbing between fields but it is not when a field regains focus after the application is resumedRelated Issue
Fixes When switching to another browser tab or window and then going back, all text on TextField is selected automatically.
Tests
Adds 1 test.