From 97c8870ca7ee17ca87ab3b035bcab9bee245f1fa Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 24 Dec 2024 16:36:46 +0800 Subject: [PATCH] * [task#135031 doing 0.1h 3h] add readonly attribute params of textarea. --- lib/zin/wg/textarea/v1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zin/wg/textarea/v1.php b/lib/zin/wg/textarea/v1.php index 302e837c8f..5f991b91e9 100644 --- a/lib/zin/wg/textarea/v1.php +++ b/lib/zin/wg/textarea/v1.php @@ -39,7 +39,7 @@ class textarea extends wg return h::textarea ( - set($this->props->pick(array('name', 'id', 'class', 'placeholder', 'rows', 'cols', 'disabled'))), + set($this->props->pick(array('name', 'id', 'class', 'placeholder', 'rows', 'cols', 'disabled', 'readonly'))), $this->prop('required') ? setClass('is-required') : null, $this->prop('value'), $autoHeight ? on::init()->do('$element.autoHeight()') : null,