From 4b5e0f071a273c397470ecfa355ee6f2ae5481db Mon Sep 17 00:00:00 2001 From: Catouse Date: Tue, 18 Sep 2018 17:13:03 +0800 Subject: [PATCH] * fix js error when auto set height of textarea. --- module/testcase/js/common.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/testcase/js/common.js b/module/testcase/js/common.js index aaddbf9345..26c53fd05b 100644 --- a/module/testcase/js/common.js +++ b/module/testcase/js/common.js @@ -144,7 +144,9 @@ function setStories() function initSteps(selector) { /* Fix task #4832. Auto adjust textarea height. */ - $('textarea.autosize').each($.autoResizeTextarea); + $('textarea.autosize').each(function() { + $.autoResizeTextarea(this); + }); var $steps = $(selector || '#steps'); var $stepTemplate = $('#stepTemplate').detach().removeClass('template').attr('id', null);