UX: Trigger composer resize when dismissing keyboard in iPad

UX: Trigger composer resize when dismissing keyboard in iPad

diff --git a/app/assets/javascripts/discourse/lib/safari-hacks.js.es6 b/app/assets/javascripts/discourse/lib/safari-hacks.js.es6
index e221afa..bb19035 100644
--- a/app/assets/javascripts/discourse/lib/safari-hacks.js.es6
+++ b/app/assets/javascripts/discourse/lib/safari-hacks.js.es6
@@ -115,6 +115,7 @@ function positioningWorkaround($fixedElement) {
   var blurredNow = function(evt) {
     if (
       !done &&
+      evt.srcElement !== document.activeElement &&
       $(document.activeElement)
         .parents()
         .toArray()

GitHub sha: 1051a951

1 Like