mirror of
https://github.com/discourse/discourse.git
synced 2025-03-29 11:35:45 +08:00

Should fix an iOS regression in f5e8e73. iOS does not pull up the keyboard if the `.focus()` call is delayed by a rendering timeout or an asynchronous ajax call. This PR adds earlier `.focus()` calls if the input element is present.