Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Tooltips don’t close when clicked outside in iOS (fixes #90)
In order for this to work, options.pagecontainer must be set. The problem is that iOS needs cursor:pointer on the clicked element in order to register a click. There are few options: 1. The best option is to set `options.pagecontainer` and the plugin will fix the issue by adding `cursor:pointer` style to page container div. Page container div is also useful for some screen-readers and will be used in next implementation of `scrolllock` (see https://gist.github.com/vladimirsiljkovic/9674659f00f730ad8a14689e0115696c ). 2. Another option is to add `cursor:pointer` style manually on any div that is below the popup, however this will affect other browsers if iOS is not explicitly targeted. 3. Another option is to set `background:true` and `color:transparent` on tooltips to get show the transparent background div, however this will disable interaction with background content until popup is closed (first click would close the tooltip, so the second click would be required to interact with background content).
- Loading branch information