summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static/resources/ui.js
diff options
context:
space:
mode:
authorJoseph Mory <morytyann@outlook.com>2024-07-05 17:15:55 +0800
committerPaul Donald <newtwen+github@gmail.com>2024-07-06 13:32:12 +0200
commitd3bf67507f480e248a234dd79e0f981d59a062b7 (patch)
tree1455ce10095ace4f7e1b4657e76a67efa5ee76e6 /modules/luci-base/htdocs/luci-static/resources/ui.js
parent23f1b97763ed8c006b8799309d3c6a05a1d2fca6 (diff)
luci-base: Correct how textarea's wrap works
Signed-off-by: Joseph Mory <morytyann@outlook.com>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources/ui.js')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js
index 90ff86b75a..0e395cea20 100644
--- a/modules/luci-base/htdocs/luci-static/resources/ui.js
+++ b/modules/luci-base/htdocs/luci-static/resources/ui.js
@@ -511,7 +511,7 @@ var UITextarea = UIElement.extend(/** @lends LuCI.ui.Textarea.prototype */ {
'style': style,
'cols': this.options.cols,
'rows': this.options.rows,
- 'wrap': this.options.wrap ? '' : null
+ 'wrap': this.options.wrap ? 'soft' : 'off'
}, [ value ]));
if (this.options.monospace)