-
Notifications
You must be signed in to change notification settings - Fork 354
Hiding Tip Blocks Content Behind It #42
Comments
there is the 'pointer-events': 'none', witch disable any cursor event handler, so I think tip.hide() should work just fine |
But would that pass mouseover and click events to nodes lying behind it? |
yes, I made some tests and everything seems to work just fine, do you have an example where it did not? |
Interesting. I have inspected the tip more closely, and when it is hidden, the css property I am currently using this |
I am using the same version, and I don't have the problem. here is an example of the tag's style after being hidden: |
I ended up cloning this repo and using this source code instead. I am not having this issue anymore. It might have been a caching problem or something related to a bug in the minified version. Thanks! |
The code you were using was an older version. This should be fixed in versions >= v0.6.1. |
Looking at the source code,
tip.hide()
sets the opacity of the tip to0.0
, but does not actually hide it from the web page. This works fine for some cases. However, the tip while invisible still blocks the content below it, and one cannot mouseover an SVG element that lies behind the hidden tip, for example. Shouldn't a variant of 'display: none' be used instead?The text was updated successfully, but these errors were encountered: