修复 tree 节点 title 编辑状态有特殊字符时的转义问题 (#1432)
Close https://gitee.com/layui/layui/issues/I8K79H
This commit is contained in:
parent
eb765a23a2
commit
dd686a82b8
@ -2,12 +2,13 @@
|
||||
* tree 树组件
|
||||
*/
|
||||
|
||||
layui.define('form', function(exports){
|
||||
layui.define(['form','util'], function(exports){
|
||||
"use strict";
|
||||
|
||||
var $ = layui.$;
|
||||
var form = layui.form;
|
||||
var layer = layui.layer;
|
||||
var util = layui.util;
|
||||
|
||||
// 模块名
|
||||
var MOD_NAME = 'tree';
|
||||
@ -547,7 +548,7 @@ layui.define('form', function(exports){
|
||||
// 添加输入框,覆盖在文字上方
|
||||
elemMain.append('<input type="text" class="layui-tree-editInput">');
|
||||
// 获取焦点
|
||||
elemMain.children('.layui-tree-editInput').val(text).focus();
|
||||
elemMain.children('.layui-tree-editInput').val(util.unescape(text)).focus();
|
||||
// 嵌入文字移除输入框
|
||||
var getVal = function(input){
|
||||
var textNew = input.val().trim();
|
||||
|
Loading…
Reference in New Issue
Block a user