From 2ace6f9fa30898ebcb8b13c04f50639efb130c7e Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 5 Dec 2016 11:16:45 +0100 Subject: [PATCH] Work-around Grammarly messing up the DOM --- wcfsetup/install/files/js/WCF.Comment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.Comment.js b/wcfsetup/install/files/js/WCF.Comment.js index ad1a6c0f4c..16b8c46e72 100644 --- a/wcfsetup/install/files/js/WCF.Comment.js +++ b/wcfsetup/install/files/js/WCF.Comment.js @@ -829,8 +829,8 @@ WCF.Comment.Handler = Class.extend({ _saveEdit: function(event) { var $input = $(event.currentTarget); if ($input.is('button')) { - $input.prev('small.innerError').remove(); - $input = $input.prev('textarea'); + $input.parent().children('small.innerError').remove(); + $input = $input.parent().children('textarea'); } var $message = $.trim($input.val()); -- 2.20.1