Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Tooltip is shown right after init #142

Closed
jan-tosovsky-cz opened this issue Nov 14, 2018 · 1 comment
Closed

Tooltip is shown right after init #142

jan-tosovsky-cz opened this issue Nov 14, 2018 · 1 comment

Comments

@jan-tosovsky-cz
Copy link

Tooltips should be IMHO hidden by default and shown when the specified event is fired. This behavior can be tested directly in the Example section:
https://alloyui.com/examples/tooltip

In my case I also tried render: false option, but this has no effect.

@jonmak08
Copy link
Contributor

Hi @jan-tosovsky-cz,

You can achieve you desired result of not having the tooltip displayed on load by adding the attribute visible: false to your configuration object on component instantiation.

Ex.

YUI().use(
  'aui-tooltip',
  function(Y) {
    new Y.Tooltip(
      {
        trigger: '#myTooltip',
        position: 'right',
        visible: false
      }
    ).render();
  }
);

Please let me know if you have any questions. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants