JQuery UI [Sortable]: Help with input textbox in LI

Issue:  Input box is locked when I enable the sortable.


Here is my doc ready:

    //  handle drag sort for pareto SORT
    $('#jqParetoEditList').sortable({
        cancel: ".fixed",
        delay: 100,
        //connectWith: "",
        stop: function (event, ui) {
            p.HandleSortPareto(ui, ui.item)  // note this just handles the change in order
        },
        start: function (event, ui) {
        }
    });



Here is my li build:

                t += "<li data-id='" + d.ItemID + "' class='jqSortParLI'>" +
                       "<div><img src='/img/site/hb_16x16.png' class='jqSortParHand' /></div>" +
                       "<div><input id='ParITEMX_" + d.ItemID + "' class='parINP' type='text'  maxlength='120'/></div>";
                var a = (d.IsActive ==1) ?" checked" : "";
                t+=       "<div><input type='checkbox' " + a + "/></div>" +
                    "</li>";

The container UL is:  #jqParetoEditList



Any help would be awesome.

Note: The sort works just fine it's trying to edit the text in the input boxes that is locked.

thanks in advance.

sk
skillileaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GaryCommented:
What do you mean locked?
Do you have a link to the page or can you make a test case at http://jsfiddle.net
0
skillileaAuthor Commented:
I mean I can't click into the text box to edit.  I think SORTABLE overrides it.  I'll work on a fiddle.

tnx TONS

sk
0
skillileaAuthor Commented:
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

GaryCommented:
That's counter intuitive - for something to be sortable it has to be draggable and it cannot be draggable if you can click into the element.
0
skillileaAuthor Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for skillilea's comment #a40240891

for the following reason:

Posted on fiddle
0
GaryCommented:
0
skillileaAuthor Commented:
I think this does it.


 $('#jqParetoEditList').sortable({
         cancel: ".fixed input",  // add it here and we are good
         delay: 100,
         //connectWith: "",
         stop: function (event, ui) {
             p.HandleSortPareto(ui, ui.item)  // note this just handles the change in order
         },
         start: function (event, ui) {
         }
     });
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
skillileaAuthor Commented:
Found the solution.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.