enyo / opentip

Opentip is an open source javascript tooltip based on the protoype framework.
http://www.opentip.org
1.25k stars 401 forks source link

hideOn not working #44

Closed shahzebkhan closed 11 years ago

shahzebkhan commented 11 years ago

I am trying to show the tooltip on mouseover, and hide it on mouseout.

The tooltip shows fine, but never hides.

I am using coffeescript, and have tried this on latest Firefox, Safari and Chrome versions.

myInput = $(".alert")
inputOpentip = new Opentip(myInput,
    title: "Title!!!",
    showOn: "mouseover",
    target: true,
    hideTriggers: ["tip", "trigger", "target"],
    hideOn: "mouseout"
)

Am I missing something here ?

enyo commented 11 years ago

Try mouseout instead of mouseleave.

shahzebkhan commented 11 years ago

Thanks for your response enyo.

I have tried both, but neither worked.

Any other ideas ?

shahzebkhan commented 11 years ago

Does the order in which these options are specified, matter at all ?

shahzebkhan commented 11 years ago

Managed to resolve it.

I don't think it was ever a problem with OpenTip, but a weirdness with how I had included the CSS file.

Thanks for your response enyo. Closing the issue.

enyo commented 11 years ago

Glad you resolved it! Btw: the order does not matter at all, no. In general, plain JS objects have no ordered properties so it wouldn't even be possible for me make the order matter.

shahzebkhan commented 11 years ago

Thanks for the info!