You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One difficulty I often have with o-tooltip is that it requires an ID string for the target, which are often in short supply around React-land. Looking at the code, the imperative interface only uses the opt.target value to run a getElementById to then pass on the returned node to the constructor.
Allowing opts.target to be an HTMLElement allows for patterns like the following (in React pseudocode):
One difficulty I often have with o-tooltip is that it requires an ID string for the target, which are often in short supply around React-land. Looking at the code, the imperative interface only uses the opt.target value to run a
getElementById
to then pass on the returned node to the constructor.Allowing opts.target to be an
HTMLElement
allows for patterns like the following (in React pseudocode):...Where the
target
prop is likely anotherref
passed down from a parent element:The text was updated successfully, but these errors were encountered: