JQuery UI可排序,输入框不可编辑

JQuery UI Sortable, Input box not Editable

本文关键字:输入 编辑 UI 排序 JQuery      更新时间:2023-09-26

我试图把一个input框在sortable UL.

排序工作,但文本是"locked"click event is overridden…不知道该怎么办

我认为这个链接解决了我的一些问题。但是,我还是很困惑。

我还在这里设置了测试代码。

提前感谢!

sk

正如注释所指出的,当您在取消选项

中包含输入标记时,此操作有效。
    $('#jqParetoEditList').sortable({
    cancel: ".fixed,input",
    delay: 100,
    //connectWith: "",
    stop: function (event, ui) {
        //p.HandleSortPareto(ui, ui.item)  // note this just handles the change in order
    },
    start: function (event, ui) {}
});

检查工作小提琴