             self.viewController?.closeReplyView()
         }
         
-        let keepEditingAction = UIAlertAction(title: CommonStrings.talkPageCloseConfirmationKeepEditing, style: .cancel)
+        let keepEditingAction = UIAlertAction(title: CommonStrings.talkPageCloseConfirmationKeepEditing, style: .cancel) { _ in
+            
+            guard let viewController = self.viewController else {
+                return
+            }
+            
+            self.displayMode = .partial
+            self.calculateLayout(in: viewController)
+        }
         
         alertController.addAction(discardAction)
         alertController.addAction(keepEditingAction)

    
    private var containerView: UIView?
    private var containerViewTopConstraint: NSLayoutConstraint?
    private var contentViewBottomConstraint: NSLayoutConstraint?
    
    // Pan Gesture tracking properties

    }
    
    func reset() {
        
        animateOff {
            self.dragHandleView?.removeFromSuperview()
            self.dragHandleView = nil
            self.containerViewYUponDragBegin = nil
            
            self.containerView?.removeFromSuperview()
            self.containerView = nil
            self.containerViewTopConstraint = nil
            self.contentViewBottomConstraint = nil
            self.containerViewBottomConstraint = nil
            
            self.contentView?.removeFromSuperview()
            self.contentView = nil

            self.viewController = nil
            self.commentViewModel = nil
            
            self.displayMode = .partial
        }
    }
    
    var isLoading: Bool = false {
