markitondemand / mk-ui

A suite of JavaScript component libraries focused on accessible solutions to common UI challenges.
MIT License
9 stars 7 forks source link

Feature/add lock to tooltips #4

Closed ETNOL closed 7 years ago

ETNOL commented 7 years ago

Allows a tooltip to be temporarily locked from being hidden by its associated hide event ('mouseout' or 'click').

My current use case is a tooltip appears when the trigger is clicked but shouldn't disappear until a button within the tooltip is clicked. On trigger, I lock() it and call show(). When the other button is clicked I unlock() it and hide() it.