question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

setDefaults is ignored when it does not occur soon enough

See original GitHub issue

When AngularJS (1.x) is included on a page using RequireJS, tippy works, but anything set via setDefaults fails to apply.

https://codepen.io/helion3/pen/JagVxd

In the above codepen, the issue is resolved by removing angular from the require block/function. Changing the order of the includes doesn’t have any effect. This does not occur when Angular is included via a script tag.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
atomikscommented, Sep 27, 2018

Using data-tippy the auto-initialization is deferred with setTimeout(autoInit), so you can run sync scripts straight after importing Tippy, but otherwise no. That technique is for beginners who need a simple & fast way to create their tooltips on traditional web pages without hassle. If you’re using something like Angular, I recommend using the tippy() function to create tooltips.

0reactions
atomikscommented, Sep 27, 2018

Try the higher order function. V2 used the same technique internally.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use cases for the 'setdefault' dict method - Stack Overflow
I commonly use setdefault for keyword argument dicts, such as in this function: ... So may be it is not enough of a...
Read more >
The Argparse4j User Manual
The const value defauls to null . Argument.setDefault()¶. All named arguments and some positional arguments may be omitted at the command line. The ......
Read more >
Built-in Types — Python 3.11.1 documentation
The following sections describe the standard types that are built into the interpreter. The principal built-in types are numerics, sequences, mappings, ...
Read more >
WXTOIMG FAQ
Why do I get the warning message "enhancement ignored: could not find a NOAA sensor 2 (or 3) image"? The operational NOAA satellites...
Read more >
FAQ and troubleshooting tips for Resource Scheduling ...
If Booking Status is set to Ignore, Resource Scheduling Optimization won't consider that booking record; it will be as if the booking record...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found