If I do “jquery sortable” on a contenteditable item(s), I then can't focus mouse anywhere inside contenteditable text anymore

后端 未结 7 2283
情深已故
情深已故 2021-02-07 05:31

Strangely this is broken only in Firefox and Opera (IE, Chrome and Safari works as it should).

Any suggestions for a quick fix?




        
7条回答
  •  别那么骄傲
    2021-02-07 05:33

    Yes so for me it was the combination of adding:

    cancel: 'input,textarea,button,select,option,[contenteditable]'
    

    and then taking off the .disableSelection();

    so i'm left with:

    $("#sortable_list").sortable({
        cancel: 'input,textarea,button,select,option,[contenteditable]'
    });
    

提交回复
热议问题