- 
                Notifications
    
You must be signed in to change notification settings  - Fork 25
 
Closed
Labels
Milestone
Description
Describe the Bug
Tooltip fails whenever the target id makes an invalid CSS selector.
Steps to Reproduce
Steps to reproduce the behavior:
- Create a trigger element like so:
 
<span data-tooltip="2d90208e58f24216be64de517570c628">Hello</span>
<hx-tooltip id="2d90208e58f24216be64de517570c628">Do you like my hat?</hx-tooltip>
- Hover over Hello with your mouse.
 - Observe error (screenshotted below) in the dev console.
 
Expected behavior
I expected it to ask me about my hat.
Screenshots
Environment
Please complete the following information:
- Device: Lappy
 - OS: OSX
 - Browser: Chrome 68
 
Additional Context
Problem is here. Make it look like:
this._target = this.getRootNode().querySelector('[data-tooltip="' + this.id + '"]');
