Tooltip sets the trigger to "focus" for only "input". This causes inconsistent behaviors when using it on a textarea, as the textarea is set to mouseover and not focus.
Here is a _fix_ to have textarea act the same as input
(all that was added is: || link.is("textarea") .. twice)
Here is a _fix_ to have textarea act the same as input
(all that was added is: || link.is("textarea") .. twice)
// mouse interaction
link.bind(link.is("input") || link.is("textarea") ? "focus" : "mouseover", function(e) {
self.show(e);
tip.hover(function() { self.show(); }, function() { self.hide(); });
});
link.bind(link.is("input") || link.is("textarea") ? "blur" : "mouseout", function() {
self.hide();
});
