Repository: flutter
Issue: Keyboard pops up automatically after app goes to background and comes back
Labels: a: text input,c: regression,framework,engine,f: cupertino,platform-web,f: focus,has reproducible steps,P2,found in release: 2.6,team-web,triaged-web

## Steps to Reproduce

I was able to reproduce in two scenarios 

1. Go to https://wen-el-sahra.web.app/destination/Sunset . Use the search feature and search for The Broad. Click on book now, now minimise the browser and come back again. The keyboard will start to appear. After the keyboard appears like this, it will keep on automatically popping up on navigating to new routes or popping and going back to previous ones.

This issue is only happening if there are buttons before a form, otherwise this is not happening.

To test the above theory go to 
https://wen-el-sahra.web.app/destination/BirthdayBachelor and select the first card named se and click book now and perform the above steps the keyboard won't appear.

2.  Go to https://wen-el-sahra.web.app/destination/Sunset use the search feature and search for something. Minimise and come back to the app and the keyboard will appear automatically. 

This behaviour may be device specific as previously a [similar issue](https://github.com/flutter/flutter/issues/67341) was solved and closed in flutter framework that was device specific. Below are the specifications of the test device. I am testing on a real android device.

<img src="https://user-images.githubusercontent.com/67138059/138546888-197eed11-6aa9-4bb9-aeee-bafa1bb436d4.jpeg" width ="300">


**Expected results:** <!-- what did you want to see? -->
Keyboard should not auto pop up on app coming back from background on android

**Actual results:** <!-- what did you see? -->
Keyboard automatically pops up on app coming back from background on android

<details>
<summary>Code sample</summary>

```dart
```

</details>

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

```
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[√] Flutter (Channel beta, 2.7.0-3.0.pre, on Microsoft Windows [Version 10.0.19043.1288], locale en-IN)
    • Flutter version 2.7.0-3.0.pre at D:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c19845a8c3 (4 days ago), 2021-10-19 10:58:42 -0700
    • Engine revision bbba2b2437
    • Dart version 2.15.0 (build 2.15.0-178.1.beta)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\shata\AppData\Local\Android\Sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_SDK_ROOT = C:\Users\shata\AppData\Local\Android\Sdk
    • Java binary at: D:\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.2)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.31624.102
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2020.3)
    • Android Studio at D:\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[√] IntelliJ IDEA Ultimate Edition (version 2020.3)
    • IntelliJ at D:\IntelliJ IDEA 2020.3.1
    • Flutter plugin version 54.0.3
    • Dart plugin version 203.7759

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19043.1288]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 94.0.4606.81
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 94.0.992.38

• No issues found!
```

</details>

Video of the bug

https://user-images.githubusercontent.com/67138059/138547170-676c8fca-e1c3-41b1-8f36-781e831945b2.mp4