Ramesh
Ramesh

Reputation: 145

Click event not triggered after element focusout

Click event not triggered after focusout event, in textarea. Tabs and button click is not worked. Fiddle is here.

Steps to produce:

focusin to the textarea and click any tabs or buttons in the popup.

Upvotes: 0

Views: 778

Answers (1)

bart s
bart s

Reputation: 5110

Not the nicest solution but you can delay the toggling of the classes like this

function f2() {
  setTimeout(function() {
    field.removeClass("c2").addClass("c1");
  },200);
}

see updated fiddle

The reason that it happens is exactly the same as in your question from a few hours before. The only difference is that you have jQuery UI tabs now instead of a button

Upvotes: 1

Related Questions